modifyAccessLog method

Future<DecryptedAccessLog> modifyAccessLog(
  1. String sdkId,
  2. DecryptedAccessLog entity
)

Implementation

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