getUserReservations method
- String token
override
Fetches all reservations made by the current user.
Implementation
@override
Future<List<Reservation>> getUserReservations(String token) async {
log('Fetching user reservations');
final response = await api.callFunction(
function: 'local_lbplanner_slots_get_my_reservations',
token: token,
);
response.assertJson();
return response.asList.map(Reservation.fromJson).toList();
}