getStudentSlots method
override
Fetches all slots a supervisor can theoretically reserve for a student.
Implementation
@override
Future<List<Slot>> getStudentSlots({required String token, required int studentId}) async {
log('Fetching student slots for student $studentId');
final response = await api.callFunction(
function: 'local_lbplanner_slots_get_student_slots',
body: {
'studentid': studentId,
},
token: token,
);
response.assertJson();
return response.asList.map(Slot.fromJson).toList();
}