CourseToSlot.noId constructor

CourseToSlot.noId({
  1. required int courseId,
  2. required int slotId,
  3. required Vintage vintage,
})

Maps a MoodleCourse to a Slot without an id.

Implementation

factory CourseToSlot.noId({required int courseId, required int slotId, required Vintage vintage}) => CourseToSlot(
      id: -1,
      courseId: courseId,
      slotId: slotId,
      vintage: vintage,
    );