tryDecrypt method

Future<AccessLog> tryDecrypt(
  1. String sdkId,
  2. EncryptedAccessLog accessLog
)

Implementation

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