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 (deletionDate != null) {
json[r'deletionDate'] = deletionDate;
}
if (name != null) {
json[r'name'] = name;
}
if (lastName != null) {
json[r'lastName'] = lastName;
}
if (firstName != null) {
json[r'firstName'] = firstName;
}
json[r'names'] = names;
if (gender != null) {
json[r'gender'] = gender;
}
if (civility != null) {
json[r'civility'] = civility;
}
if (companyName != null) {
json[r'companyName'] = companyName;
}
if (speciality != null) {
json[r'speciality'] = speciality;
}
if (bankAccount != null) {
json[r'bankAccount'] = bankAccount;
}
if (bic != null) {
json[r'bic'] = bic;
}
if (proxyBankAccount != null) {
json[r'proxyBankAccount'] = proxyBankAccount;
}
if (proxyBic != null) {
json[r'proxyBic'] = proxyBic;
}
if (invoiceHeader != null) {
json[r'invoiceHeader'] = invoiceHeader;
}
if (cbe != null) {
json[r'cbe'] = cbe;
}
if (ehp != null) {
json[r'ehp'] = ehp;
}
if (userId != null) {
json[r'userId'] = userId;
}
if (parentId != null) {
json[r'parentId'] = parentId;
}
if (convention != null) {
json[r'convention'] = convention;
}
if (nihii != null) {
json[r'nihii'] = nihii;
}
if (nihiiSpecCode != null) {
json[r'nihiiSpecCode'] = nihiiSpecCode;
}
if (ssin != null) {
json[r'ssin'] = ssin;
}
json[r'addresses'] = addresses;
json[r'languages'] = languages;
if (picture != null) {
json[r'picture'] = picture;
}
json[r'statuses'] = statuses.toList();
json[r'statusHistory'] = statusHistory;
json[r'specialityCodes'] = specialityCodes.toList();
json[r'sendFormats'] = sendFormats;
if (notes != null) {
json[r'notes'] = notes;
}
json[r'financialInstitutionInformation'] = financialInstitutionInformation;
if (billingType != null) {
json[r'billingType'] = billingType;
}
if (type != null) {
json[r'type'] = type;
}
if (contactPerson != null) {
json[r'contactPerson'] = contactPerson;
}
if (contactPersonHcpId != null) {
json[r'contactPersonHcpId'] = contactPersonHcpId;
}
if (supervisorId != null) {
json[r'supervisorId'] = supervisorId;
}
json[r'flatRateTarifications'] = flatRateTarifications;
json[r'importedData'] = importedData;
json[r'options'] = options;
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;
}
return json;
}