getInsightWorkspaces method

Future<PagedDTOInsightWorkspaceDTO> getInsightWorkspaces({
  1. int? start,
  2. int? limit,
})

This endpoint is deprecated, please use /assets/workspace/.

Implementation

Future<PagedDTOInsightWorkspaceDTO> getInsightWorkspaces(
    {int? start, int? limit}) async {
  return PagedDTOInsightWorkspaceDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/insight/workspace',
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}