decrypt method

Future<DecryptedAccessLog> decrypt(
  1. String sdkId,
  2. EncryptedAccessLog accessLog
)

Implementation

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