toCompanion method

MaterialsCompanion toCompanion(
  1. bool nullToAbsent
)

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),
  );
}