getSlotMappings method
override
Fetches all mappings for the slot with slotId
.
Implementation
@override
Future<List<CourseToSlot>> getSlotMappings({required String token, required int slotId}) async {
log('Fetching slot mappings for slot $slotId');
final response = await api.callFunction(
function: 'local_lbplanner_slots_get_slot_filters',
body: {
'slotid': slotId,
},
token: token,
);
response.assertJson();
return response.asList.map(CourseToSlot.fromJson).toList();
}