toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
if (rev != null) {
json[r'rev'] = rev;
}
if (deletionDate != null) {
json[r'deletionDate'] = deletionDate;
}
if (layout != null) {
json[r'layout'] = layout;
}
if (templateLayout != null) {
json[r'templateLayout'] = templateLayout;
}
if (name != null) {
json[r'name'] = name;
}
if (guid != null) {
json[r'guid'] = guid;
}
if (group != null) {
json[r'group'] = group;
}
if (descr != null) {
json[r'descr'] = descr;
}
if (disabled != null) {
json[r'disabled'] = disabled;
}
if (specialty != null) {
json[r'specialty'] = specialty;
}
if (author != null) {
json[r'author'] = author;
}
if (formInstancePreferredLocation != null) {
json[r'formInstancePreferredLocation'] = formInstancePreferredLocation;
}
if (keyboardShortcut != null) {
json[r'keyboardShortcut'] = keyboardShortcut;
}
if (shortReport != null) {
json[r'shortReport'] = shortReport;
}
if (mediumReport != null) {
json[r'mediumReport'] = mediumReport;
}
if (longReport != null) {
json[r'longReport'] = longReport;
}
json[r'reports'] = reports.toList();
json[r'tags'] = tags.toList();
if (layoutAttachmentId != null) {
json[r'layoutAttachmentId'] = layoutAttachmentId;
}
return json;
}