encode static method
Implementation
static Map<String, dynamic> encode(FormTemplate value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"rev" : value.rev,
"deletionDate" : value.deletionDate,
"templateLayout" : value.templateLayout == null ? null : FormTemplateLayout.encode(value.templateLayout!),
"rawTemplateLayout" : value.rawTemplateLayout == null ? null : base64Encode(value.rawTemplateLayout as List<int>),
"name" : value.name,
"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!),
"author" : value.author,
"formInstancePreferredLocation" : value.formInstancePreferredLocation,
"keyboardShortcut" : value.keyboardShortcut,
"shortReport" : value.shortReport,
"mediumReport" : value.mediumReport,
"longReport" : value.longReport,
"reports" : value.reports.map((x0) => x0).toList(),
"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
"layoutAttachmentId" : value.layoutAttachmentId,
"templateLayoutAttachmentId" : value.templateLayoutAttachmentId
};
return entityAsMap;
}