getWarnings method
Gets all the warnings.
Implementation
Future<List<Warning>> getWarnings() async {
final response = await _context.client.get(
Uri.https(authority, '$path/warnings'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => Warning.fromJson(e))
.toList();
}