queryDashboard method
Gets a single dashboard by id
.
Throws EdeskyClientException when response status code is not 200.
Implementation
Future<Dashboard> queryDashboard(int id) async {
final response = await _queryGet(_createUrl('dashboards', {'id': '$id'}));
return XmlDocument.parse(utf8.decode(response.bodyBytes))
.findAllElements('dashboard')
.map((d) => Dashboard.fromXML(d))
.single;
}