toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (date != null) {
    json[r'date'] = date;
  }
  if (dayNumber != null) {
    json[r'dayNumber'] = dayNumber;
  }
  if (weekday != null) {
    json[r'weekday'] = weekday;
  }
  if (dayPeriod != null) {
    json[r'dayPeriod'] = dayPeriod;
  }
  if (timeOfDay != null) {
    json[r'timeOfDay'] = timeOfDay;
  }
  if (administratedQuantity != null) {
    json[r'administratedQuantity'] = administratedQuantity;
  }
  return json;
}