toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'id'] = id;
}
json[r'identifiers'] = identifiers;
if (rev != null) {
json[r'rev'] = rev;
}
if (created != null) {
json[r'created'] = created;
}
if (modified != null) {
json[r'modified'] = modified;
}
if (author != null) {
json[r'author'] = author;
}
if (responsible != null) {
json[r'responsible'] = responsible;
}
if (medicalLocationId != null) {
json[r'medicalLocationId'] = medicalLocationId;
}
json[r'labels'] = labels.toList();
json[r'codes'] = codes.toList();
if (endOfLife != null) {
json[r'endOfLife'] = endOfLife;
}
if (deletionDate != null) {
json[r'deletionDate'] = deletionDate;
}
if (healthcareElementId != null) {
json[r'healthElementId'] = healthcareElementId;
}
if (valueDate != null) {
json[r'valueDate'] = valueDate;
}
if (openingDate != null) {
json[r'openingDate'] = openingDate;
}
if (closingDate != null) {
json[r'closingDate'] = closingDate;
}
if (description != null) {
json[r'description'] = description;
}
if (note != null) {
json[r'note'] = note;
}
if (systemMetaData != null) {
json[r'systemMetaData'] = systemMetaData;
}
return json;
}