getAllLabels method

Future<PageBeanString> getAllLabels({
  1. int? startAt,
  2. int? maxResults,
})

Returns a paginated list of labels.

Implementation

Future<PageBeanString> getAllLabels({int? startAt, int? maxResults}) async {
  return PageBeanString.fromJson(await _client.send(
    'get',
    'rest/api/3/label',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
    },
  ));
}