copyWithCompanion method

Schedule copyWithCompanion(
  1. SchedulesCompanion data
)

Implementation

Schedule copyWithCompanion(SchedulesCompanion data) {
  return Schedule(
    id: data.id.present ? data.id.value : this.id,
    courseOffering: data.courseOffering.present
        ? data.courseOffering.value
        : this.courseOffering,
    dayOfWeek: data.dayOfWeek.present ? data.dayOfWeek.value : this.dayOfWeek,
    period: data.period.present ? data.period.value : this.period,
    classroom: data.classroom.present ? data.classroom.value : this.classroom,
  );
}