Class DocumentModelJsonReader

All Implemented Interfaces:
Marshaller<DocumentModel>, Reader<DocumentModel>

@Setup(mode=SINGLETON, priority=2000) public class DocumentModelJsonReader extends EntityJsonReader<DocumentModel>
Convert Json as DocumentModel.

Format is (any additional json property is ignored):

 {
   "entity-type": "document",
   "uid": "EXISTING_DOCUMENT_UID", <- use it to update an existing document
   "name": "DOCUMENT_NAME", <- use it to create an new document
   "type": "DOCUMENT_TYPE", <- use it to create an new document
   "changeToken": "CHANGE_TOKEN", <- pass the previous change token for optimistic locking
   "properties": ...  <-- see DocumentPropertiesJsonReader
 }
 
Since:
7.2