deleteJob method
Deletes a scan job based on the provided job ID.
host - The host server URL.
jobId - The ID of the job to delete.
Returns a Map<String, dynamic> containing the job information.
Implementation
Future<Map<String, dynamic>> deleteJob(String host, String jobId) async {
final url = '$host/api/device/scanners/jobs/$jobId';
try {
final response = await http.delete(Uri.parse(url));
return json.decode(response.body);
} catch (error) {
return {};
}
}