// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user.dart';

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

User _$UserFromJson(Map<String, dynamic> json) {
  return User()
    ..uid = json['uid'] as num
    ..real_name = json['real_name'] as String
    ..birthday = json['birthday'] as num
    ..card_id = json['card_id'] as String
    ..partner_id = json['partner_id'] as num
    ..group_id = json['group_id'] as num
    ..nickname = json['nickname'] as String
    ..avatar = json['avatar'] as String
    ..phone = json['phone'] as String
    ..now_money = json['now_money'] as String
    ..brokerage_price = json['brokerage_price'] as String
    ..integral = json['integral'] as String
    ..sign_num = json['sign_num'] as num
    ..level = json['level'] as num
    ..spread_uid = json['spread_uid'] as num
    ..spread_time = json['spread_time'] as num
    ..user_type = json['user_type'] as String
    ..is_promoter = json['is_promoter'] as num
    ..pay_count = json['pay_count'] as num
    ..spread_count = json['spread_count'] as num
    ..addres = json['addres'] as String
    ..adminid = json['adminid'] as bool
    ..login_type = json['login_type'] as String
    ..vip_level = json['vip_level'] as num
    ..vip_status = json['vip_status'] as num
    ..vip_card_level = json['vip_card_level'] as num
    ..vip_gift = json['vip_gift'] as num
    ..vip_time = json['vip_time'] as String
    ..vip_card_id = json['vip_card_id'] as String
    ..couponCount = json['couponCount'] as num
    ..like = json['like'] as num
    ..orderStatusNum = json['orderStatusNum'] as Map<String, dynamic>
    ..notice = json['notice'] as num
    ..recharge = json['recharge'] as num
    ..orderStatusSum = json['orderStatusSum'] as num
    ..extractTotalPrice = json['extractTotalPrice'] as num
    ..extractPrice = json['extractPrice'] as String
    ..statu = json['statu'] as num
    ..promoter_price = json['promoter_price'] as String
    ..broken_commission = json['broken_commission'] as String
    ..commissionCount = json['commissionCount'] as String
    ..vip = json['vip'] as bool
    ..yesterDay = json['yesterDay'] as num
    ..recharge_switch = json['recharge_switch'] as num
    ..switchUserInfo = (json['switchUserInfo'] as List)
        ?.map((e) =>
            e == null ? null : UserInfo.fromJson(e as Map<String, dynamic>))
        ?.toList()
    ..mails = json['mails'] as Map<String, dynamic>;
}

Map<String, dynamic> _$UserToJson(User instance) => <String, dynamic>{
      'uid': instance.uid,
      'real_name': instance.real_name,
      'birthday': instance.birthday,
      'card_id': instance.card_id,
      'partner_id': instance.partner_id,
      'group_id': instance.group_id,
      'nickname': instance.nickname,
      'avatar': instance.avatar,
      'phone': instance.phone,
      'now_money': instance.now_money,
      'brokerage_price': instance.brokerage_price,
      'integral': instance.integral,
      'sign_num': instance.sign_num,
      'level': instance.level,
      'spread_uid': instance.spread_uid,
      'spread_time': instance.spread_time,
      'user_type': instance.user_type,
      'is_promoter': instance.is_promoter,
      'pay_count': instance.pay_count,
      'spread_count': instance.spread_count,
      'addres': instance.addres,
      'adminid': instance.adminid,
      'login_type': instance.login_type,
      'vip_level': instance.vip_level,
      'vip_status': instance.vip_status,
      'vip_card_level': instance.vip_card_level,
      'vip_gift': instance.vip_gift,
      'vip_time': instance.vip_time,
      'vip_card_id': instance.vip_card_id,
      'couponCount': instance.couponCount,
      'like': instance.like,
      'orderStatusNum': instance.orderStatusNum,
      'notice': instance.notice,
      'recharge': instance.recharge,
      'orderStatusSum': instance.orderStatusSum,
      'extractTotalPrice': instance.extractTotalPrice,
      'extractPrice': instance.extractPrice,
      'statu': instance.statu,
      'promoter_price': instance.promoter_price,
      'broken_commission': instance.broken_commission,
      'commissionCount': instance.commissionCount,
      'vip': instance.vip,
      'yesterDay': instance.yesterDay,
      'recharge_switch': instance.recharge_switch,
      'switchUserInfo': instance.switchUserInfo,
      'mails': instance.mails
    };
