HealthcareParty.fromJSON constructor

HealthcareParty.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

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