UserSemesterSummary class

Inheritance
Implemented types

Constructors

UserSemesterSummary({required int id, required int user, required int semester, double? average, double? conduct, double? totalCredits, double? creditsPassed, String? note, String? className, EnrollmentStatus? enrollmentStatus, bool? registered, bool? graduated})
const
UserSemesterSummary.fromJson(Map<String, dynamic> json, {ValueSerializer? serializer})
factory

Properties

average double?
Weighted average for the semester.
final
className String?
Student's assigned class name (e.g., "電子四甲"). Plain text — no class code available from this page.
final
conduct double?
Conduct grade.
final
creditsPassed double?
Credits passed/earned.
final
enrollmentStatus EnrollmentStatus?
Enrollment status (在學, 休學, or 退學).
final
graduated bool?
Whether the student graduated this semester.
final
hashCode int
The hash code for this object.
no setteroverride
id int
Auto-incrementing primary key.
final
note String?
Additional note.
final
registered bool?
Whether the student is registered for this semester.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semester int
Reference to the semester.
final
totalCredits double?
Total credits attempted.
final
user int
Reference to the authenticated user.
final

Methods

copyWith({int? id, int? user, int? semester, Value<double?> average = const Value.absent(), Value<double?> conduct = const Value.absent(), Value<double?> totalCredits = const Value.absent(), Value<double?> creditsPassed = const Value.absent(), Value<String?> note = const Value.absent(), Value<String?> className = const Value.absent(), Value<EnrollmentStatus?> enrollmentStatus = const Value.absent(), Value<bool?> registered = const Value.absent(), Value<bool?> graduated = const Value.absent()}) UserSemesterSummary
copyWithCompanion(UserSemesterSummariesCompanion data) UserSemesterSummary
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) UserSemesterSummariesCompanion
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