toByteArray

Encodes the dictionary in the specification's metadata layout.