toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'type'] = type;
json[r'weekDays'] = weekDays;
json[r'start'] = start!.toIso8601String();
if (end != null) {
json[r'end'] = end!.toIso8601String();
}
return json;
}