// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'campaign_detail_model.dart';

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

CampaignDetailModel _$CampaignDetailModelFromJson(Map<String, dynamic> json) =>
    CampaignDetailModel(
      title: json['title'] as String?,
      publishDate: json['publish_at_date'] as String?,
      thumbnail: json['thumbnail'] as String?,
      buttonOn: json['button_on'] as String?,
      buttonColor: json['button_color'] as String?,
      buttonName: json['button_name'] as String?,
      buttonTextColor: json['button_text_color'] as String?,
      items:
          (json['items'] as List<dynamic>?)
              ?.map(
                (e) =>
                    CampaignDetailItemModel.fromJson(e as Map<String, dynamic>),
              )
              .toList(),
    );

Map<String, dynamic> _$CampaignDetailModelToJson(
  CampaignDetailModel instance,
) => <String, dynamic>{
  'title': instance.title,
  'publish_at_date': instance.publishDate,
  'thumbnail': instance.thumbnail,
  'button_on': instance.buttonOn,
  'button_color': instance.buttonColor,
  'button_name': instance.buttonName,
  'button_text_color': instance.buttonTextColor,
  'items': instance.items,
};

CampaignDetailResponseModel _$CampaignDetailResponseModelFromJson(
  Map<String, dynamic> json,
) => CampaignDetailResponseModel(
  pageDetail:
      json['page_detail'] == null
          ? null
          : CampaignDetailModel.fromJson(
            json['page_detail'] as Map<String, dynamic>,
          ),
);

Map<String, dynamic> _$CampaignDetailResponseModelToJson(
  CampaignDetailResponseModel instance,
) => <String, dynamic>{'page_detail': instance.pageDetail};
