copyWithCompanion method
Implementation
CourseMaterial copyWithCompanion(MaterialsCompanion data) {
return CourseMaterial(
id: data.id.present ? data.id.value : this.id,
courseOffering: data.courseOffering.present
? data.courseOffering.value
: this.courseOffering,
title: data.title.present ? data.title.value : this.title,
href: data.href.present ? data.href.value : this.href,
iSchoolCourseId: data.iSchoolCourseId.present
? data.iSchoolCourseId.value
: this.iSchoolCourseId,
streamable: data.streamable.present
? data.streamable.value
: this.streamable,
);
}