encode static method
Implementation
static Map<String, dynamic> encode(HealthcareParty value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"rev" : value.rev,
"created" : value.created,
"modified" : value.modified,
"deletionDate" : value.deletionDate,
"identifier" : value.identifier.map((x0) => Identifier.encode(x0)).toList(),
"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
"codes" : value.codes.map((x0) => CodeStub.encode(x0)).toList(),
"name" : value.name,
"lastName" : value.lastName,
"firstName" : value.firstName,
"names" : value.names.map((x0) => PersonName.encode(x0)).toList(),
"gender" : value.gender == null ? null : Gender.encode(value.gender!),
"civility" : value.civility,
"companyName" : value.companyName,
"speciality" : value.speciality,
"bankAccount" : value.bankAccount,
"bic" : value.bic,
"proxyBankAccount" : value.proxyBankAccount,
"proxyBic" : value.proxyBic,
"invoiceHeader" : value.invoiceHeader,
"cbe" : value.cbe,
"ehp" : value.ehp,
"userId" : value.userId,
"parentId" : value.parentId,
"convention" : value.convention,
"nihii" : value.nihii,
"nihiiSpecCode" : value.nihiiSpecCode,
"ssin" : value.ssin,
"addresses" : value.addresses.map((x0) => DecryptedAddress.encode(x0)).toList(),
"languages" : value.languages.map((x0) => x0).toList(),
"picture" : value.picture == null ? null : base64Encode(value.picture as List<int>),
"statuses" : value.statuses.map((x0) => HealthcarePartyStatus.encode(x0)).toList(),
"statusHistory" : value.statusHistory.map((x0) => HealthcarePartyHistoryStatus.encode(x0)).toList(),
"specialityCodes" : value.specialityCodes.map((x0) => CodeStub.encode(x0)).toList(),
"sendFormats" : value.sendFormats.map((k0, v0) => MapEntry(TelecomType.encode(k0), v0)),
"notes" : value.notes,
"financialInstitutionInformation" : value.financialInstitutionInformation.map((x0) => DecryptedFinancialInstitutionInformation.encode(x0)).toList(),
"descr" : value.descr?.map((k0, v0) => MapEntry(k0, v0)),
"billingType" : value.billingType,
"type" : value.type,
"contactPerson" : value.contactPerson,
"contactPersonHcpId" : value.contactPersonHcpId,
"supervisorId" : value.supervisorId,
"flatRateTarifications" : value.flatRateTarifications.map((x0) => DecryptedFlatRateTarification.encode(x0)).toList(),
"importedData" : value.importedData.map((k0, v0) => MapEntry(k0, v0)),
"options" : value.options.map((k0, v0) => MapEntry(k0, v0)),
"properties" : value.properties.map((x0) => DecryptedPropertyStub.encode(x0)).toList(),
"hcPartyKeys" : value.hcPartyKeys.map((k0, v0) => MapEntry(k0, v0.map((x1) => x1).toList())),
"aesExchangeKeys" : value.aesExchangeKeys.map((k0, v0) => MapEntry(k0, v0.map((k1, v1) => MapEntry(k1, v1.map((k2, v2) => MapEntry(k2, v2)))))),
"transferKeys" : value.transferKeys.map((k0, v0) => MapEntry(k0, v0.map((k1, v1) => MapEntry(k1, v1)))),
"privateKeyShamirPartitions" : value.privateKeyShamirPartitions.map((k0, v0) => MapEntry(k0, v0)),
"publicKey" : value.publicKey,
"publicKeysForOaepWithSha256" : value.publicKeysForOaepWithSha256.map((x0) => x0).toList()
};
return entityAsMap;
}