toCompanion method
Implementation
CoursesCompanion toCompanion(bool nullToAbsent) {
return CoursesCompanion(
id: Value(id),
fetchedAt: fetchedAt == null && nullToAbsent
? const Value.absent()
: Value(fetchedAt),
code: Value(code),
credits: Value(credits),
hours: Value(hours),
nameEn: nameEn == null && nullToAbsent
? const Value.absent()
: Value(nameEn),
nameZh: nameZh == null && nullToAbsent
? const Value.absent()
: Value(nameZh),
descriptionEn: descriptionEn == null && nullToAbsent
? const Value.absent()
: Value(descriptionEn),
descriptionZh: descriptionZh == null && nullToAbsent
? const Value.absent()
: Value(descriptionZh),
);
}