shareWith method

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

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);
}