DecryptedAddress.fromJSON constructor

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

Implementation

factory DecryptedAddress.fromJSON(Map<String, dynamic> data) {
	return DecryptedAddress(
		tags: (data["tags"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toSet(),
		codes: (data["codes"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toSet(),
		identifier: (data["identifier"] as List<dynamic>).map((x0) => Identifier.fromJSON(x0) ).toList(),
		addressType: data["addressType"] == null ? null : AddressType.fromJSON(data["addressType"]),
		descr: (data["descr"] as String?),
		street: (data["street"] as String?),
		houseNumber: (data["houseNumber"] as String?),
		postboxNumber: (data["postboxNumber"] as String?),
		postalCode: (data["postalCode"] as String?),
		city: (data["city"] as String?),
		state: (data["state"] as String?),
		country: (data["country"] as String?),
		note: (data["note"] as String?),
		notes: (data["notes"] as List<dynamic>).map((x0) => Annotation.fromJSON(x0) ).toList(),
		telecoms: (data["telecoms"] as List<dynamic>).map((x0) => DecryptedTelecom.fromJSON(x0) ).toList(),
		encryptedSelf: (data["encryptedSelf"] as Base64String?)
	);
}