Input$SpecilOfferInput.fromJson constructor

Input$SpecilOfferInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

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