toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dayOfWeek = this.dayOfWeek;
  final timeOfDay = this.timeOfDay;
  final timeZone = this.timeZone;
  return {
    if (dayOfWeek != null) 'dayOfWeek': dayOfWeek.toValue(),
    if (timeOfDay != null) 'timeOfDay': timeOfDay,
    if (timeZone != null) 'timeZone': timeZone,
  };
}