ContactShareOptions.fromJSON constructor

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

Implementation

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