shareWithMany method

Future<DecryptedAccessLog> shareWithMany(
  1. String sdkId,
  2. DecryptedAccessLog accessLog,
  3. Map<String, AccessLogShareOptions> delegates
)

Implementation

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