getQueues method

Future<PagedDTOQueueDTO> getQueues({
  1. required String serviceDeskId,
  2. bool? includeCount,
  3. int? start,
  4. int? limit,
})

This method returns the queues in a service desk. To include a customer request count for each queue (in the issueCount field) in the response, set the query parameter includeCount to true (its default is false).

Permissions required: service desk's Agent.

Implementation

Future<PagedDTOQueueDTO> getQueues(
    {required String serviceDeskId,
    bool? includeCount,
    int? start,
    int? limit}) async {
  return PagedDTOQueueDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/servicedesk/{serviceDeskId}/queue',
    pathParameters: {
      'serviceDeskId': serviceDeskId,
    },
    queryParameters: {
      if (includeCount != null) 'includeCount': '$includeCount',
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}