deleteAccessLogs method

Future<List<DocIdentifier>> deleteAccessLogs(
  1. String sdkId,
  2. List<AccessLog> accessLogs
)

Implementation

Future<List<DocIdentifier>> deleteAccessLogs(String sdkId, List<AccessLog> accessLogs) async {
	final res = await _methodChannel.invokeMethod<String>(
		'AccessLogApi.deleteAccessLogs',
		{
			"sdkId": sdkId,
			"accessLogs": jsonEncode(accessLogs.map((x0) => AccessLog.encode(x0)).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deleteAccessLogs");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => DocIdentifier.fromJSON(x1) ).toList();
}