EncryptedPlanOfAction.fromJSON constructor

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

Implementation

factory EncryptedPlanOfAction.fromJSON(Map<String, dynamic> data) {
	return EncryptedPlanOfAction(
		(data["id"] as String),
		status: (data["status"] as int),
		numberOfCares: (data["numberOfCares"] as int?),
		created: (data["created"] as int?),
		modified: (data["modified"] as int?),
		author: (data["author"] as String?),
		responsible: (data["responsible"] as String?),
		medicalLocationId: (data["medicalLocationId"] as String?),
		tags: (data["tags"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toSet(),
		codes: (data["codes"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toSet(),
		endOfLife: (data["endOfLife"] as int?),
		prescriberId: (data["prescriberId"] as String?),
		valueDate: (data["valueDate"] as int?),
		openingDate: (data["openingDate"] as int?),
		closingDate: (data["closingDate"] as int?),
		deadlineDate: (data["deadlineDate"] as int?),
		name: (data["name"] as String?),
		descr: (data["descr"] as String?),
		note: (data["note"] as String?),
		idOpeningContact: (data["idOpeningContact"] as String?),
		idClosingContact: (data["idClosingContact"] as String?),
		documentIds: (data["documentIds"] as List<dynamic>).map((x0) => (x0 as String) ).toSet(),
		careTeamMemberships: (data["careTeamMemberships"] as List<dynamic>).map((x0) => x0 == null ? null : EncryptedCareTeamMembership.fromJSON(x0) ).toList(),
		relevant: (data["relevant"] as bool),
		encryptedSelf: (data["encryptedSelf"] as Base64String?),
	);
}