toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
if (transactionId != null) {
json[r'transactionId'] = transactionId;
}
json[r'identifier'] = identifier;
if (contactId != null) {
json[r'contactId'] = contactId;
}
json[r'subContactIds'] = subContactIds.toList();
json[r'plansOfActionIds'] = plansOfActionIds.toList();
json[r'healthElementsIds'] = healthElementsIds.toList();
json[r'formIds'] = formIds.toList();
json[r'secretForeignKeys'] = secretForeignKeys.toList();
json[r'cryptedForeignKeys'] = cryptedForeignKeys.map((k, v) => MapEntry(k, v.toList()));
json[r'delegations'] = delegations.map((k, v) => MapEntry(k, v.toList()));
json[r'encryptionKeys'] = encryptionKeys.map((k, v) => MapEntry(k, v.toList()));
if (label != null) {
json[r'label'] = label;
}
if (index != null) {
json[r'index'] = index;
}
json[r'content'] = content;
if (encryptedContent != null) {
json[r'encryptedContent'] = encryptedContent;
}
json[r'textIndexes'] = textIndexes;
if (valueDate != null) {
json[r'valueDate'] = valueDate;
}
if (openingDate != null) {
json[r'openingDate'] = openingDate;
}
if (closingDate != null) {
json[r'closingDate'] = closingDate;
}
if (formId != null) {
json[r'formId'] = formId;
}
if (created != null) {
json[r'created'] = created;
}
if (modified != null) {
json[r'modified'] = modified;
}
if (endOfLife != null) {
json[r'endOfLife'] = endOfLife;
}
if (author != null) {
json[r'author'] = author;
}
if (responsible != null) {
json[r'responsible'] = responsible;
}
if (medicalLocationId != null) {
json[r'medicalLocationId'] = medicalLocationId;
}
if (comment != null) {
json[r'comment'] = comment;
}
if (status != null) {
json[r'status'] = status;
}
json[r'invoicingCodes'] = invoicingCodes.toList();
json[r'notes'] = notes;
json[r'qualifiedLinks'] = qualifiedLinks;
json[r'codes'] = codes.toList();
json[r'tags'] = tags.toList();
if (encryptedSelf != null) {
json[r'encryptedSelf'] = encryptedSelf;
}
return json;
}