toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (dayOfWeek != null) 'dayOfWeek': dayOfWeek!,
if (endTime != null) 'endTime': endTime!.toJson(),
if (startTime != null) 'startTime': startTime!.toJson(),
};