TopicShareOptions.fromJSON constructor

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

Implementation

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