encode static method
Implementation
static Map<String, dynamic> encode(DocumentTemplate value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"rev" : value.rev,
"created" : value.created,
"modified" : value.modified,
"author" : value.author,
"responsible" : value.responsible,
"medicalLocationId" : value.medicalLocationId,
"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
"codes" : value.codes.map((x0) => CodeStub.encode(x0)).toList(),
"endOfLife" : value.endOfLife,
"deletionDate" : value.deletionDate,
"attachment" : value.attachment == null ? null : base64Encode(value.attachment as List<int>),
"documentType" : value.documentType == null ? null : DocumentType.encode(value.documentType!),
"mainUti" : value.mainUti,
"name" : value.name,
"otherUtis" : value.otherUtis.map((x0) => x0).toList(),
"attachmentId" : value.attachmentId,
"version" : value.version == null ? null : ReportVersion.encode(value.version!),
"owner" : value.owner,
"guid" : value.guid,
"group" : value.group == null ? null : DocumentGroup.encode(value.group!),
"descr" : value.descr,
"disabled" : value.disabled,
"specialty" : value.specialty == null ? null : CodeStub.encode(value.specialty!)
};
return entityAsMap;
}