copyWithCompanion method

CourseOfferingClassesData copyWithCompanion(
  1. CourseOfferingClassesCompanion data
)

Implementation

CourseOfferingClassesData copyWithCompanion(
  CourseOfferingClassesCompanion data,
) {
  return CourseOfferingClassesData(
    courseOffering: data.courseOffering.present
        ? data.courseOffering.value
        : this.courseOffering,
    classEntity: data.classEntity.present
        ? data.classEntity.value
        : this.classEntity,
  );
}