getAll method
dynamic
getAll()
Implementation
getAll() async {
final response = await http.get(
ZermeloUtil.createApiURL(this.school, "schools", this.accessToken));
if (response.statusCode == 200) {
return json
.decode(response.body)
.map((school) => School.fromJson(json.decode(school)))
.toList();
} else {
throw Exception('Failed to load school');
}
}