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