// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'reserved_remote_config_models.dart';

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

ImpressionData _$ImpressionDataFromJson(Map<String, dynamic> json) =>
    ImpressionData(
      platform: json['ad_platform'] as String? ?? 'MAX',
      id: json['id'] as String? ?? '',
      unitId: json['adunit_id'] as String? ?? '',
      unitName: json['adunit_name'] as String? ?? '',
      unitFormat: json['adunit_format'] as String? ?? '',
      groupId: json['adgroup_id'] as String? ?? '',
      groupName: json['adgroup_name'] as String? ?? '',
      groupType: json['adgroup_type'] as String? ?? '',
      currency: json['currency'] as String? ?? '',
      country: json['country'] as String? ?? '',
      appVersion: json['app_version'] as String? ?? '',
      groupPriority: json['adgroup_priority'] as int? ?? 0,
      publisherRevenue: (json['publisher_revenue'] as num?)?.toDouble() ?? -1,
      networkName: json['network_name'] as String? ?? '',
      networkPlacementId: json['network_placement_id'] as String? ?? '',
      precision: json['precision'] as String? ?? '',
    );

Map<String, dynamic> _$ImpressionDataToJson(ImpressionData instance) =>
    <String, dynamic>{
      'ad_platform': instance.platform,
      'id': instance.id,
      'adunit_id': instance.unitId,
      'adunit_name': instance.unitName,
      'adunit_format': instance.unitFormat,
      'adgroup_id': instance.groupId,
      'adgroup_name': instance.groupName,
      'adgroup_type': instance.groupType,
      'currency': instance.currency,
      'country': instance.country,
      'app_version': instance.appVersion,
      'adgroup_priority': instance.groupPriority,
      'publisher_revenue': instance.publisherRevenue,
      'network_name': instance.networkName,
      'network_placement_id': instance.networkPlacementId,
      'precision': instance.precision,
    };
