getAllDashboards method

Future<PageOfDashboards> getAllDashboards({
  1. String? filter,
  2. int? startAt,
  3. int? maxResults,
})

Returns a list of dashboards owned by or shared with the user. The list may be filtered to include only favorite or owned dashboards.

This operation can be accessed anonymously.

Permissions required: None.

Implementation

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