queryDashboards method

Future<List<Dashboard>> queryDashboards()

Gets all dashboards.

Throws EdeskyClientException when response status code is not 200.

Implementation

Future<List<Dashboard>> queryDashboards() async {
  final response = await _queryGet(_createUrl('dashboards'));

  return XmlDocument.parse(utf8.decode(response.bodyBytes))
      .findAllElements('dashboard')
      .map((d) => Dashboard.fromXML(d))
      .toList();
}