shareWithMany method

Future<DecryptedDocument> shareWithMany(
  1. String sdkId,
  2. DecryptedDocument document,
  3. Map<String, DocumentShareOptions> delegates
)

Implementation

Future<DecryptedDocument> shareWithMany(String sdkId, DecryptedDocument document, Map<String, DocumentShareOptions> delegates) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentApi.shareWithMany',
		{
			"sdkId": sdkId,
			"document": jsonEncode(DecryptedDocument.encode(document)),
			"delegates": jsonEncode(delegates.map((k0, v0) => MapEntry(k0, DocumentShareOptions.encode(v0)))),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method shareWithMany");
	final parsedResJson = jsonDecode(res);
	return DecryptedDocument.fromJSON(parsedResJson);
}