toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (startHour != null) {
    json[r'startHour'] = startHour;
  }
  if (endHour != null) {
    json[r'endHour'] = endHour;
  }
  return json;
}