get method

dynamic get({
  1. required String id,
})

Implementation

get({required String id}) async {
  final response = await http.get(
      ZermeloUtil.createApiURL(this.school, "schools/$id", this.accessToken));
  if (response.statusCode == 200) {
    return School.fromJson(json.decode(response.body));
  } else {
    throw Exception('Failed to load school');
  }
}