CourseNotify.fromCourse constructor
CourseNotify.fromCourse({})
Implementation
factory CourseNotify.fromCourse({
required int id,
required Course course,
required int weekday,
required TimeCode timeCode,
}) {
return CourseNotify(
id: id,
title: course.title,
code: course.code,
startTime: timeCode.startTime,
weekday: weekday,
location: course.location.toString(),
);
}