modifyAccessLog method

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

Implementation

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