shareWith method
Implementation
Future<EncryptedAccessLog> shareWith(String sdkId, String delegateId, EncryptedAccessLog accessLog, AccessLogShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'AccessLogApi.encrypted.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"accessLog": jsonEncode(EncryptedAccessLog.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 EncryptedAccessLog.fromJSON(parsedResJson);
}