// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'preview_flash_sale_model.dart';

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

PreviewFlashSale _$PreviewFlashSaleFromJson(Map<String, dynamic> json) =>
    PreviewFlashSale(
      id: (json['id'] as num?)?.toInt(),
      countdownSecond: (json['countdown_second'] as num?)?.toInt(),
      startTime: json['start_time'] as String?,
      endTime: json['end_time'] as String?,
      fsQuantityTotal: (json['fs_quantity_total'] as num?)?.toInt(),
      fsQuantitySold: (json['fs_quantity_sold'] as num?)?.toInt(),
      percentTag: (json['percent_tag'] as num?)?.toInt(),
      rewardType: json['reward_type'] as String?,
      rewardContent: json['reward_content'] as String?,
      openingContent: json['opening_content'] as String?,
      name: json['name'] as String?,
      rewardPopup: json['reward_popup'] as String?,
      price: (json['price'] as num?)?.toInt(),
      isFlashSale: json['is_flash_sale'] as bool?,
      isFlashSalePrice: json['is_flash_sale_price'] as bool?,
      headerImg: json['header_img'] as String?,
      fsQuantityPerPersonTotal:
          (json['fs_quantity_per_person_total'] as num?)?.toInt(),
      fsQuantityPerPersonBought:
          (json['fs_quantity_per_person_bought'] as num?)?.toInt(),
    );

Map<String, dynamic> _$PreviewFlashSaleToJson(PreviewFlashSale instance) =>
    <String, dynamic>{
      'id': instance.id,
      'countdown_second': instance.countdownSecond,
      'start_time': instance.startTime,
      'end_time': instance.endTime,
      'fs_quantity_total': instance.fsQuantityTotal,
      'fs_quantity_sold': instance.fsQuantitySold,
      'percent_tag': instance.percentTag,
      'reward_type': instance.rewardType,
      'reward_content': instance.rewardContent,
      'opening_content': instance.openingContent,
      'name': instance.name,
      'reward_popup': instance.rewardPopup,
      'price': instance.price,
      'is_flash_sale': instance.isFlashSale,
      'is_flash_sale_price': instance.isFlashSalePrice,
      'header_img': instance.headerImg,
      'fs_quantity_per_person_total': instance.fsQuantityPerPersonTotal,
      'fs_quantity_per_person_bought': instance.fsQuantityPerPersonBought,
    };
