Course class
- Inheritance
-
- Implemented types
-
Constructors
-
Course({required int id, DateTime? fetchedAt, required String code, required double credits, required int hours, String? nameEn, String? nameZh, String? descriptionEn, String? descriptionZh})
-
const
-
Course.fromJson(Map<String, dynamic> json, {ValueSerializer? serializer})
-
factory
Properties
-
code
→ String
-
Unique course code (e.g., "3004130", "3602012", "AC23502", "1001002").
final
-
credits
→ double
-
Number of credits awarded for completing this course.
final
-
descriptionEn
→ String?
-
Course description in English.
final
-
descriptionZh
→ String?
-
Course description in Traditional Chinese.
final
-
fetchedAt
→ DateTime?
-
Timestamp of when complete data was last fetched from the server.
final
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
hours
→ int
-
Number of class hours per week.
final
-
id
→ int
-
Auto-incrementing primary key.
final
-
nameEn
→ String?
-
Course name in English.
final
-
nameZh
→ String?
-
Course name in Traditional Chinese.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith({int? id, Value<DateTime?> fetchedAt = const Value.absent(), String? code, double? credits, int? hours, Value<String?> nameEn = const Value.absent(), Value<String?> nameZh = const Value.absent(), Value<String?> descriptionEn = const Value.absent(), Value<String?> descriptionZh = const Value.absent()})
→ Course
-
-
copyWithCompanion(CoursesCompanion data)
→ Course
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toColumns(bool nullToAbsent)
→ Map<String, Expression<Object>>
-
Converts this object into a map of column names to expressions to insert
or update.
override
-
toCompanion(bool nullToAbsent)
→ CoursesCompanion
-
-
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