CourseTableSlot class

Inheritance

Constructors

CourseTableSlot({required int id, String? number, required int semester, String? nameZh, String? nameEn, double? credits, int? hours, required DayOfWeek dayOfWeek, required Period period, String? classroomNameZh, String? classroomNameEn})
const
CourseTableSlot.fromJson(Map<String, dynamic> json, {ValueSerializer? serializer})
factory

Properties

classroomNameEn → String?
final
classroomNameZh → String?
final
credits → double?
final
dayOfWeek → DayOfWeek
final
hashCode → int
The hash code for this object.
no setteroverride
hours → int?
final
id → int
final
nameEn → String?
final
nameZh → String?
final
number → String?
final
period → Period
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semester → int
final

Methods

copyWith({int? id, Value<String?> number = const Value.absent(), int? semester, Value<String?> nameZh = const Value.absent(), Value<String?> nameEn = const Value.absent(), Value<double?> credits = const Value.absent(), Value<int?> hours = const Value.absent(), DayOfWeek? dayOfWeek, Period? period, Value<String?> classroomNameZh = const Value.absent(), Value<String?> classroomNameEn = const Value.absent()}) → CourseTableSlot
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({ValueSerializer? serializer}) → Map<String, dynamic>
Converts this object into a representation that can be encoded with json. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
override
toJsonString({ValueSerializer? serializer}) → String
Converts this object into a json representation. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
inherited
toString() → String
A string representation of this object.
override

Operators

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