Add deserialize logic for metadata fields.

STUD-640