toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
json[r'identifier'] = identifier;
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;
}
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 (firstName != null) {
json[r'firstName'] = firstName;
}
if (lastName != null) {
json[r'lastName'] = lastName;
}
json[r'names'] = names;
if (companyName != null) {
json[r'companyName'] = companyName;
}
json[r'languages'] = languages;
json[r'addresses'] = addresses;
if (civility != null) {
json[r'civility'] = civility;
}
if (gender != null) {
json[r'gender'] = gender;
}
if (birthSex != null) {
json[r'birthSex'] = birthSex;
}
if (mergeToPatientId != null) {
json[r'mergeToPatientId'] = mergeToPatientId;
}
json[r'mergedIds'] = mergedIds.toList();
if (alias != null) {
json[r'alias'] = alias;
}
json[r'active'] = active;
if (deactivationReason != null) {
json[r'deactivationReason'] = deactivationReason;
}
if (ssin != null) {
json[r'ssin'] = ssin;
}
if (maidenName != null) {
json[r'maidenName'] = maidenName;
}
if (spouseName != null) {
json[r'spouseName'] = spouseName;
}
if (partnerName != null) {
json[r'partnerName'] = partnerName;
}
if (personalStatus != null) {
json[r'personalStatus'] = personalStatus;
}
if (dateOfBirth != null) {
json[r'dateOfBirth'] = dateOfBirth;
}
if (dateOfDeath != null) {
json[r'dateOfDeath'] = dateOfDeath;
}
if (timestampOfLatestEidReading != null) {
json[r'timestampOfLatestEidReading'] = timestampOfLatestEidReading;
}
if (placeOfBirth != null) {
json[r'placeOfBirth'] = placeOfBirth;
}
if (placeOfDeath != null) {
json[r'placeOfDeath'] = placeOfDeath;
}
if (deceased != null) {
json[r'deceased'] = deceased;
}
if (education != null) {
json[r'education'] = education;
}
if (profession != null) {
json[r'profession'] = profession;
}
if (note != null) {
json[r'note'] = note;
}
if (administrativeNote != null) {
json[r'administrativeNote'] = administrativeNote;
}
if (nationality != null) {
json[r'nationality'] = nationality;
}
if (race != null) {
json[r'race'] = race;
}
if (ethnicity != null) {
json[r'ethnicity'] = ethnicity;
}
if (preferredUserId != null) {
json[r'preferredUserId'] = preferredUserId;
}
if (picture != null) {
json[r'picture'] = picture;
}
if (externalId != null) {
json[r'externalId'] = externalId;
}
json[r'insurabilities'] = insurabilities;
json[r'partnerships'] = partnerships;
json[r'patientHealthCareParties'] = patientHealthCareParties;
json[r'financialInstitutionInformation'] = financialInstitutionInformation;
json[r'medicalHouseContracts'] = medicalHouseContracts;
json[r'patientProfessions'] = patientProfessions;
json[r'parameters'] = parameters;
json[r'properties'] = properties.toList();
json[r'hcPartyKeys'] = hcPartyKeys;
json[r'aesExchangeKeys'] = aesExchangeKeys;
json[r'transferKeys'] = transferKeys;
json[r'privateKeyShamirPartitions'] = privateKeyShamirPartitions;
if (publicKey != null) {
json[r'publicKey'] = publicKey;
}
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;
}
if (medicalLocationId != null) {
json[r'medicalLocationId'] = medicalLocationId;
}
json[r'nonDuplicateIds'] = nonDuplicateIds.toList();
json[r'encryptedAdministrativesDocuments'] = encryptedAdministrativesDocuments.toList();
if (comment != null) {
json[r'comment'] = comment;
}
if (warning != null) {
json[r'warning'] = warning;
}
if (fatherBirthCountry != null) {
json[r'fatherBirthCountry'] = fatherBirthCountry;
}
if (birthCountry != null) {
json[r'birthCountry'] = birthCountry;
}
if (nativeCountry != null) {
json[r'nativeCountry'] = nativeCountry;
}
if (socialStatus != null) {
json[r'socialStatus'] = socialStatus;
}
if (mainSourceOfIncome != null) {
json[r'mainSourceOfIncome'] = mainSourceOfIncome;
}
json[r'schoolingInfos'] = schoolingInfos;
json[r'employementInfos'] = employementInfos;
return json;
}