// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'flash_sale_model.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

FlashSaleModel _$FlashSaleModelFromJson(Map<String, dynamic> json) =>
    FlashSaleModel(
      id: (json['id'] as num).toInt(),
      name: json['name'] as String?,
      startTime: json['start_time'] as String?,
      endTime: json['end_time'] as String?,
      headerImg: json['header_img'] as String?,
      countdownSecond: (json['countdown_second'] as num?)?.toInt(),
      products:
          (json['products'] as List<dynamic>?)
              ?.map((e) => ProductModel.fromJson(e as Map<String, dynamic>))
              .toList(),
    );

Map<String, dynamic> _$FlashSaleModelToJson(FlashSaleModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'start_time': instance.startTime,
      'end_time': instance.endTime,
      'header_img': instance.headerImg,
      'countdown_second': instance.countdownSecond,
      'products': instance.products,
    };
