// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'main_section_config_model.dart';

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

MainSectionConfigModel _$MainSectionConfigModelFromJson(
  Map<String, dynamic> json,
) => MainSectionConfigModel(
  id: (json['id'] as num?)?.toInt(),
  name: json['name'] as String?,
  type: json['type'] as String?,
  layout: json['layout'] as String?,
  sliderSpeed: (json['slider_speed'] as num?)?.toInt(),
  order: (json['order'] as num?)?.toInt(),
  apiList: json['api_list'] as String?,
  buttonViewAll:
      json['button_view_all'] == null
          ? null
          : MainHeaderConfigRightButton.fromJson(
            json['button_view_all'] as Map<String, dynamic>,
          ),
  flashSale:
      json['flash_sale'] == null
          ? null
          : PreviewFlashSale.fromJson(
            json['flash_sale'] as Map<String, dynamic>,
          ),
);

Map<String, dynamic> _$MainSectionConfigModelToJson(
  MainSectionConfigModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'name': instance.name,
  'type': instance.type,
  'layout': instance.layout,
  'slider_speed': instance.sliderSpeed,
  'order': instance.order,
  'api_list': instance.apiList,
  'button_view_all': instance.buttonViewAll,
  'flash_sale': instance.flashSale,
};
