toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
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'tags'] = tags.toList();
json[r'codes'] = codes.toList();
if (endOfLife != null) {
json[r'endOfLife'] = endOfLife;
}
if (prescriberId != null) {
json[r'prescriberId'] = prescriberId;
}
if (valueDate != null) {
json[r'valueDate'] = valueDate;
}
if (openingDate != null) {
json[r'openingDate'] = openingDate;
}
if (closingDate != null) {
json[r'closingDate'] = closingDate;
}
if (deadlineDate != null) {
json[r'deadlineDate'] = deadlineDate;
}
if (name != null) {
json[r'name'] = name;
}
if (descr != null) {
json[r'descr'] = descr;
}
if (note != null) {
json[r'note'] = note;
}
if (idOpeningContact != null) {
json[r'idOpeningContact'] = idOpeningContact;
}
if (idClosingContact != null) {
json[r'idClosingContact'] = idClosingContact;
}
json[r'status'] = status;
json[r'documentIds'] = documentIds.toList();
if (numberOfCares != null) {
json[r'numberOfCares'] = numberOfCares;
}
json[r'careTeamMemberships'] = careTeamMemberships;
json[r'relevant'] = relevant;
if (encryptedSelf != null) {
json[r'encryptedSelf'] = encryptedSelf;
}
return json;
}