CourseToSlot class

Maps a MoodleCourse to a Slot.

Annotations

Constructors

CourseToSlot({required int id, @JsonKey(name: 'courseid') required int courseId, @JsonKey(name: 'slotid') required int slotId, required Vintage vintage})
Maps a MoodleCourse to a Slot.
const
factory
CourseToSlot.fromJson(Map<String, Object?> json)
Creates a CourseToSlot mapping from json.
factory
CourseToSlot.noId({required int courseId, required int slotId, required Vintage vintage})
Maps a MoodleCourse to a Slot without an id.
factory

Properties

copyWith → $CourseToSlotCopyWith<CourseToSlot>
Create a copy of CourseToSlot with the given fields replaced by the non-null parameter values.
no setterinherited
courseId → int
The id of the course.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → int
Unique identifier of this mapping.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slotId → int
The id of the slot.
no setterinherited
vintage → Vintage
The vintage a user must be in to attend this slot.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this CourseToSlot to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited