deserialize
Deserializes a JSON representation of AttachmentData into an AttachmentData object.
Return
The deserialized AttachmentData object.
Parameters
decoder
The decoder used to decode the JSON representation.
Throws
if the JSON representation is of an unknown AttachmentData type.