CourseToSlot constructor
Maps a MoodleCourse to a Slot.
Implementation
const factory CourseToSlot({
/// Unique identifier of this mapping.
required int id,
/// The id of the course.
@JsonKey(name: 'courseid') required int courseId,
/// The id of the slot.
@JsonKey(name: 'slotid') required int slotId,
/// The vintage a user must be in to attend this slot.
required Vintage vintage,
}) = _CourseToSlot;