// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'ads_model.dart';

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

AdId _$AdIdFromJson(Map<String, dynamic> json) => AdId(
      AdUnitId.fromJson(json['ad_unit_id'] as Map<String, dynamic>),
      amazonAdSlotId: json['amz_slot_id'] == null
          ? null
          : AdSlotId.fromJson(json['amz_slot_id'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$AdIdToJson(AdId instance) => <String, dynamic>{
      'ad_unit_id': instance.adUnitId,
      'amz_slot_id': instance.amazonAdSlotId,
    };

AdsProfile _$AdsProfileFromJson(Map<String, dynamic> json) => AdsProfile(
      bannerId:
          AdUnitId.fromJson(json['banner_ad_unit_id'] as Map<String, dynamic>),
      interstitialId: AdUnitId.fromJson(
          json['interstitial_ad_unit_id'] as Map<String, dynamic>),
      rewardsId:
          AdUnitId.fromJson(json['rewards_ad_unit_id'] as Map<String, dynamic>),
      amazonAppId: json['amz_app_id'] == null
          ? null
          : AdAppId.fromJson(json['amz_app_id'] as Map<String, dynamic>),
      amazonBannerSlotId: json['banner_amz_slot_id'] == null
          ? null
          : AdSlotId.fromJson(
              json['banner_amz_slot_id'] as Map<String, dynamic>),
      amazonInterstitialSlotId: json['interstitial_amz_slot_id'] == null
          ? null
          : AdSlotId.fromJson(
              json['interstitial_amz_slot_id'] as Map<String, dynamic>),
      amazonRewardedSlotId: json['rewarded_amz_slot_id'] == null
          ? null
          : AdSlotId.fromJson(
              json['rewarded_amz_slot_id'] as Map<String, dynamic>),
      pubmaticAppStoreUrl: json['pubmatic_app_store_url'] as String?,
      strategyInterstitialIds:
          (json['strategy_interstitial_ids'] as List<dynamic>?)
              ?.map((e) => AdId.fromJson(e as Map<String, dynamic>))
              .toList(),
    );

Map<String, dynamic> _$AdsProfileToJson(AdsProfile instance) =>
    <String, dynamic>{
      'banner_ad_unit_id': instance.bannerId,
      'interstitial_ad_unit_id': instance.interstitialId,
      'rewards_ad_unit_id': instance.rewardsId,
      'amz_app_id': instance.amazonAppId,
      'banner_amz_slot_id': instance.amazonBannerSlotId,
      'interstitial_amz_slot_id': instance.amazonInterstitialSlotId,
      'rewarded_amz_slot_id': instance.amazonRewardedSlotId,
      'pubmatic_app_store_url': instance.pubmaticAppStoreUrl,
      'strategy_interstitial_ids': instance.strategyInterstitialIds,
    };
