HealthElementShareOptions.fromJSON constructor
HealthElementShareOptions.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory HealthElementShareOptions.fromJSON(Map<String, dynamic> data) {
return HealthElementShareOptions(
requestedPermissions: RequestedPermission.fromJSON(data["requestedPermissions"]),
shareEncryptionKey: ShareMetadataBehaviour.fromJSON(data["shareEncryptionKey"]),
sharePatientId: ShareMetadataBehaviour.fromJSON(data["sharePatientId"]),
shareSecretIds: SecretIdShareOptions.fromJSON(data["shareSecretIds"])
);
}