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