serializeDocument
Serialize document to requested content type.
Return
Serialized document as byte array
Parameters
document
The DID document
contentType
The content type to serialize to
Serialize document to requested content type.
Serialized document as byte array
The DID document
The content type to serialize to