toCompanion method
- bool nullToAbsent
Implementation
ScoresCompanion toCompanion(bool nullToAbsent) {
return ScoresCompanion(
id: Value(id),
user: Value(user),
semester: Value(semester),
course: Value(course),
courseOffering: courseOffering == null && nullToAbsent
? const Value.absent()
: Value(courseOffering),
score: score == null && nullToAbsent
? const Value.absent()
: Value(score),
status: status == null && nullToAbsent
? const Value.absent()
: Value(status),
);
}