// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'banner_list.dart';

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

_$BannerListImpl _$$BannerListImplFromJson(Map<String, dynamic> json) =>
    _$BannerListImpl(
      location: json['location'] == null
          ? null
          : Location.fromJson(json['location'] as Map<String, dynamic>),
      bannerInfo: json['bannerInfo'] == null
          ? null
          : Banner.fromJson(json['bannerInfo'] as Map<String, dynamic>),
      list: (json['list'] as List<dynamic>?)
          ?.map((e) => Banner.fromJson(e as Map<String, dynamic>))
          .toList(),
    );

Map<String, dynamic> _$$BannerListImplToJson(_$BannerListImpl instance) =>
    <String, dynamic>{
      'location': instance.location,
      'bannerInfo': instance.bannerInfo,
      'list': instance.list,
    };

_$LocationImpl _$$LocationImplFromJson(Map<String, dynamic> json) =>
    _$LocationImpl(
      id: (json['id'] as num?)?.toInt(),
      name: json['name'] as String?,
      code: json['code'] as String?,
      icon: json['icon'] as String?,
      country: json['country'] as String?,
      sort: (json['sort'] as num?)?.toInt(),
      coordinates: json['coordinates'] == null
          ? null
          : Coordinates.fromJson(json['coordinates'] as Map<String, dynamic>),
      userLevel: (json['userLevel'] as num?)?.toInt(),
      isTrial: json['isTrial'] as bool?,
      showGDPR: json['showGDPR'] as bool?,
    );

Map<String, dynamic> _$$LocationImplToJson(_$LocationImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'code': instance.code,
      'icon': instance.icon,
      'country': instance.country,
      'sort': instance.sort,
      'coordinates': instance.coordinates,
      'userLevel': instance.userLevel,
      'isTrial': instance.isTrial,
      'showGDPR': instance.showGDPR,
    };

_$CoordinatesImpl _$$CoordinatesImplFromJson(Map<String, dynamic> json) =>
    _$CoordinatesImpl(
      lat: (json['lat'] as num?)?.toInt(),
      lng: (json['lng'] as num?)?.toInt(),
    );

Map<String, dynamic> _$$CoordinatesImplToJson(_$CoordinatesImpl instance) =>
    <String, dynamic>{'lat': instance.lat, 'lng': instance.lng};

_$BannerImpl _$$BannerImplFromJson(Map<String, dynamic> json) => _$BannerImpl(
  action: json['action'] as String?,
  img: json['img'] as String?,
  title: json['title'] as String?,
  content: json['content'] as String?,
  data: json['data'] as String?,
);

Map<String, dynamic> _$$BannerImplToJson(_$BannerImpl instance) =>
    <String, dynamic>{
      'action': instance.action,
      'img': instance.img,
      'title': instance.title,
      'content': instance.content,
      'data': instance.data,
    };
