DocumentShareOptions.fromJSON constructor

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

Implementation

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