// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'campaign_detail_model.dart';

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

CampaignDetailModel _$CampaignDetailModelFromJson(Map<String, dynamic> json) =>
    CampaignDetailModel(
      buttonClickActionParam: json['button_click_action_param'] as String?,
      buttonClickActionType: json['button_click_action_type'] as String?,
      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?,
      shareContent: json['share_content'] as String?,
      clickButtonShare: json['click_button_share'] 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,
  'button_click_action_type': instance.buttonClickActionType,
  'button_click_action_param': instance.buttonClickActionParam,
  'share_content': instance.shareContent,
  'click_button_share': instance.clickButtonShare,
  '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};
