shareWith method

Future<AccessLog> shareWith(
  1. String sdkId,
  2. String delegateId,
  3. AccessLog accessLog,
  4. AccessLogShareOptions? options,
)

Implementation

Future<AccessLog> shareWith(String sdkId, String delegateId, AccessLog accessLog, AccessLogShareOptions? options) async {
	final res = await _methodChannel.invokeMethod<String>(
		'AccessLogApi.tryAndRecover.shareWith',
		{
			"sdkId": sdkId,
			"delegateId": jsonEncode(delegateId),
			"accessLog": jsonEncode(AccessLog.encode(accessLog)),
			"options": jsonEncode(options == null ? null : AccessLogShareOptions.encode(options!)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method shareWith");
	final parsedResJson = jsonDecode(res);
	return AccessLog.fromJSON(parsedResJson);
}