// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'analytics_model.dart';

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

AnalyticsConfig _$AnalyticsConfigFromJson(Map<String, dynamic> json) =>
    AnalyticsConfig(
      json['cap'] == null
          ? ['firebase', 'facebook', 'guru']
          : joinedStringConvert.fromJson(json['cap'] as String),
      json['init_delay_s'] as int? ?? 10,
      json['expired_d'] as int? ?? 7,
      json['strategy'] as String? ?? '',
      json['enabled_strategy'] as bool? ?? false,
      (json['google_dma'] as List<dynamic>?)?.map((e) => e as int).toList() ??
          [1, 0, 12, 65],
      (json['dma_country'] as List<dynamic>?)
              ?.map((e) => e as String)
              .toList() ??
          [],
    );

Map<String, dynamic> _$AnalyticsConfigToJson(AnalyticsConfig instance) =>
    <String, dynamic>{
      'cap': joinedStringConvert.toJson(instance.capabilities),
      'init_delay_s': instance.delayedInSeconds,
      'expired_d': instance.expiredInDays,
      'strategy': instance.strategy,
      'enabled_strategy': instance.enabledStrategy,
      'google_dma': instance.googleDmaMask,
      'dma_country': instance.dmaCountry,
    };

UserIdentification _$UserIdentificationFromJson(Map<String, dynamic> json) =>
    UserIdentification(
      firebaseAppInstanceId: json['firebaseAppInstanceId'] as String? ?? '',
      idfa: json['idfa'] as String?,
      adId: json['adid'] as String?,
      gpsAdId: json['gpsAdid'] as String?,
    );

Map<String, dynamic> _$UserIdentificationToJson(UserIdentification instance) =>
    <String, dynamic>{
      'firebaseAppInstanceId': instance.firebaseAppInstanceId,
      'idfa': instance.idfa,
      'adid': instance.adId,
      'gpsAdid': instance.gpsAdId,
    };
