// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user.dart';

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

_$UserImpl _$$UserImplFromJson(Map<String, dynamic> json) => _$UserImpl(
  country: json['country'] as String?,
  countryName: json['countryName'] as String?,
  userIp: json['userIp'] as String?,
  accessToken: json['accessToken'] as String?,
  refreshToken: json['refreshToken'] as String?,
  accountKey: json['accountKey'] as String?,
  accountPassword: json['accountPassword'] as String?,
  createTime: (json['createTime'] as num?)?.toInt(),
  geographyEea: json['geographyEea'] as bool?,
  memberLevel: (json['memberLevel'] as num?)?.toInt(),
  userLevel: (json['userLevel'] as num?)?.toInt(),
  expireTime: (json['expireTime'] as num?)?.toInt(),
  remainTime: (json['remainTime'] as num?)?.toInt(),
  isExpired: json['isExpired'] as bool?,
  isTestUser: json['isTestUser'] as bool?,
  isSubscribeUser: json['isSubscribeUser'] as bool?,
  account: json['account'] == null
      ? null
      : Account.fromJson(json['account'] as Map<String, dynamic>),
  planInfo: json['planInfo'] == null
      ? null
      : ChannelPlan.fromJson(json['planInfo'] as Map<String, dynamic>),
  activated: json['activated'] as bool?,
);

Map<String, dynamic> _$$UserImplToJson(_$UserImpl instance) =>
    <String, dynamic>{
      'country': instance.country,
      'countryName': instance.countryName,
      'userIp': instance.userIp,
      'accessToken': instance.accessToken,
      'refreshToken': instance.refreshToken,
      'accountKey': instance.accountKey,
      'accountPassword': instance.accountPassword,
      'createTime': instance.createTime,
      'geographyEea': instance.geographyEea,
      'memberLevel': instance.memberLevel,
      'userLevel': instance.userLevel,
      'expireTime': instance.expireTime,
      'remainTime': instance.remainTime,
      'isExpired': instance.isExpired,
      'isTestUser': instance.isTestUser,
      'isSubscribeUser': instance.isSubscribeUser,
      'account': instance.account,
      'planInfo': instance.planInfo,
      'activated': instance.activated,
    };

_$AccountImpl _$$AccountImplFromJson(Map<String, dynamic> json) =>
    _$AccountImpl(
      username: json['username'] as String?,
      phone: json['phone'] as String?,
      email: json['email'] as String?,
      wechat: json['wechat'] as String?,
      qq: json['qq'] as String?,
      google: json['google'] as String?,
      apple: json['apple'] as String?,
    );

Map<String, dynamic> _$$AccountImplToJson(_$AccountImpl instance) =>
    <String, dynamic>{
      'username': instance.username,
      'phone': instance.phone,
      'email': instance.email,
      'wechat': instance.wechat,
      'qq': instance.qq,
      'google': instance.google,
      'apple': instance.apple,
    };
