shareWithMany method

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

Implementation

Future<AccessLog> shareWithMany(String sdkId, AccessLog accessLog, Map<String, AccessLogShareOptions> delegates) async {
	final res = await _methodChannel.invokeMethod<String>(
		'AccessLogApi.tryAndRecover.shareWithMany',
		{
			"sdkId": sdkId,
			"accessLog": jsonEncode(AccessLog.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 AccessLog.fromJSON(parsedResJson);
}