toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('offerType')) {
    final l$offerType = offerType;
    result$data['offerType'] = l$offerType == null
        ? null
        : toJson$Enum$SpecialOffersType(l$offerType);
  }
  if (_$data.containsKey('hours')) {
    final l$hours = hours;
    result$data['hours'] = l$hours?.map((e) => e.toJson()).toList();
  }
  return result$data;
}