deleteMaintenanceTasks method

Future<List<DocIdentifier>> deleteMaintenanceTasks(
  1. String sdkId,
  2. List<MaintenanceTask> maintenanceTasks
)

Implementation

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