toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
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'tags'] = tags.toList();
json[r'codes'] = codes.toList();
if (endOfLife != null) {
json[r'endOfLife'] = endOfLife;
}
if (deletionDate != null) {
json[r'deletionDate'] = deletionDate;
}
if (invoiceDate != null) {
json[r'invoiceDate'] = invoiceDate;
}
if (sentDate != null) {
json[r'sentDate'] = sentDate;
}
if (printedDate != null) {
json[r'printedDate'] = printedDate;
}
json[r'invoicingCodes'] = invoicingCodes;
json[r'receipts'] = receipts;
if (recipientType != null) {
json[r'recipientType'] = recipientType;
}
if (recipientId != null) {
json[r'recipientId'] = recipientId;
}
if (invoiceReference != null) {
json[r'invoiceReference'] = invoiceReference;
}
if (thirdPartyReference != null) {
json[r'thirdPartyReference'] = thirdPartyReference;
}
if (thirdPartyPaymentJustification != null) {
json[r'thirdPartyPaymentJustification'] = thirdPartyPaymentJustification;
}
if (thirdPartyPaymentReason != null) {
json[r'thirdPartyPaymentReason'] = thirdPartyPaymentReason;
}
if (reason != null) {
json[r'reason'] = reason;
}
if (invoiceType != null) {
json[r'invoiceType'] = invoiceType;
}
if (sentMediumType != null) {
json[r'sentMediumType'] = sentMediumType;
}
if (interventionType != null) {
json[r'interventionType'] = interventionType;
}
if (groupId != null) {
json[r'groupId'] = groupId;
}
if (paymentType != null) {
json[r'paymentType'] = paymentType;
}
if (paid != null) {
json[r'paid'] = paid;
}
json[r'payments'] = payments;
if (gnotionNihii != null) {
json[r'gnotionNihii'] = gnotionNihii;
}
if (gnotionSsin != null) {
json[r'gnotionSsin'] = gnotionSsin;
}
if (gnotionLastName != null) {
json[r'gnotionLastName'] = gnotionLastName;
}
if (gnotionFirstName != null) {
json[r'gnotionFirstName'] = gnotionFirstName;
}
if (gnotionCdHcParty != null) {
json[r'gnotionCdHcParty'] = gnotionCdHcParty;
}
if (invoicePeriod != null) {
json[r'invoicePeriod'] = invoicePeriod;
}
if (careProviderType != null) {
json[r'careProviderType'] = careProviderType;
}
if (internshipNihii != null) {
json[r'internshipNihii'] = internshipNihii;
}
if (internshipSsin != null) {
json[r'internshipSsin'] = internshipSsin;
}
if (internshipLastName != null) {
json[r'internshipLastName'] = internshipLastName;
}
if (internshipFirstName != null) {
json[r'internshipFirstName'] = internshipFirstName;
}
if (internshipCdHcParty != null) {
json[r'internshipCdHcParty'] = internshipCdHcParty;
}
if (internshipCbe != null) {
json[r'internshipCbe'] = internshipCbe;
}
if (supervisorNihii != null) {
json[r'supervisorNihii'] = supervisorNihii;
}
if (supervisorSsin != null) {
json[r'supervisorSsin'] = supervisorSsin;
}
if (supervisorLastName != null) {
json[r'supervisorLastName'] = supervisorLastName;
}
if (supervisorFirstName != null) {
json[r'supervisorFirstName'] = supervisorFirstName;
}
if (supervisorCdHcParty != null) {
json[r'supervisorCdHcParty'] = supervisorCdHcParty;
}
if (supervisorCbe != null) {
json[r'supervisorCbe'] = supervisorCbe;
}
if (error != null) {
json[r'error'] = error;
}
if (encounterLocationName != null) {
json[r'encounterLocationName'] = encounterLocationName;
}
if (encounterLocationNihii != null) {
json[r'encounterLocationNihii'] = encounterLocationNihii;
}
if (encounterLocationNorm != null) {
json[r'encounterLocationNorm'] = encounterLocationNorm;
}
if (longDelayJustification != null) {
json[r'longDelayJustification'] = longDelayJustification;
}
if (correctiveInvoiceId != null) {
json[r'correctiveInvoiceId'] = correctiveInvoiceId;
}
if (correctedInvoiceId != null) {
json[r'correctedInvoiceId'] = correctedInvoiceId;
}
if (creditNote != null) {
json[r'creditNote'] = creditNote;
}
if (creditNoteRelatedInvoiceId != null) {
json[r'creditNoteRelatedInvoiceId'] = creditNoteRelatedInvoiceId;
}
if (idDocument != null) {
json[r'idDocument'] = idDocument;
}
if (cancelReason != null) {
json[r'cancelReason'] = cancelReason;
}
if (cancelDate != null) {
json[r'cancelDate'] = cancelDate;
}
json[r'options'] = options;
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 (encryptedSelf != null) {
json[r'encryptedSelf'] = encryptedSelf;
}
return json;
}