parseMetafield

The parseMetafield utility creates a new metafield object with a value that has been parsed according to the metafield type.