CourseToSlot constructor

const CourseToSlot({
  1. required int id,
  2. @JsonKey(name: 'courseid') required int courseId,
  3. @JsonKey(name: 'slotid') required int slotId,
  4. required Vintage vintage,
})

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;