Syllabus class

Inheritance
Implemented types

Constructors

Syllabus({required int id, required int courseOffering, required int teacher, required SyllabusLanguage language, DateTime? updatedAt, required DateTime fetchedAt})
const
Syllabus.fromJson(Map<String, dynamic> json, {ValueSerializer? serializer})
factory

Properties

courseOffering → int
Reference to the course offering this syllabus belongs to.
final
fetchedAt → DateTime
When this language variant was last fetched from the course system.
final
hashCode → int
The hash code for this object.
no setteroverride
id → int
Auto-incrementing primary key.
final
language → SyllabusLanguage
Language variant fetched from the course system.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
teacher → int
Reference to the authoring teacher (the syllabus's code is their code).
final
updatedAt → DateTime?
When this syllabus was last updated by the teacher (最後更新時間).
final

Methods

copyWith({int? id, int? courseOffering, int? teacher, SyllabusLanguage? language, Value<DateTime?> updatedAt = const Value.absent(), DateTime? fetchedAt}) → Syllabus
copyWithCompanion(SyllabusesCompanion data) → Syllabus
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) → SyllabusesCompanion
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