toCompanion method
Implementation
MaterialsCompanion toCompanion(bool nullToAbsent) {
return MaterialsCompanion(
id: Value(id),
courseOffering: Value(courseOffering),
title: title == null && nullToAbsent
? const Value.absent()
: Value(title),
href: href == null && nullToAbsent ? const Value.absent() : Value(href),
iSchoolCourseId: iSchoolCourseId == null && nullToAbsent
? const Value.absent()
: Value(iSchoolCourseId),
streamable: streamable == null && nullToAbsent
? const Value.absent()
: Value(streamable),
);
}