// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'UserInfo.dart';

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

UserInfo _$UserInfoFromJson(Map<String, dynamic> json) {
  return UserInfo(
      json['id'] as int,
      json['nickname'] as String,
      json['username'] as String,
      json['icon'] as String,
      json['phone'] as String,
      json['sex'] as String,
      (json['moneyCoin'] as num)?.toDouble(),
      (json['moneyPoint'] as num)?.toDouble(),
      json['birthday'] as int,
      json['noticeFlag'] == 'Y',
      json['remindFlag'] == 'Y',
      json['createFlag'] == 'Y',
      json['houseCard'] as int,
      json['recommender'] as int,
      json['levelId'] as int,
      json['moneyTicket'] as int,
      json['channel'] as int,
      json['rank']!=null?json['rank'] as int : 0);
}

Map<String, dynamic> _$UserInfoToJson(UserInfo instance) => <String, dynamic>{
      'id': instance.id,
      'nickname': instance.nickname,
      'username': instance.username,
      'icon': instance.icon,
      'phone': instance.phone,
      'sex': instance.sex,
      'moneyCoin': instance.moneyCoin,
      'moneyPoint': instance.moneyPoint,
      'birthday': instance.birthday,
      'noticeFlag': instance.noticeFlag,
      'remindFlag': instance.remindFlag,
      'createFlag': instance.createFlag,
      'houseCard': instance.houseCard,
      'recommender': instance.recommender,
      'levelId': instance.levelId,
      'moneyTicket': instance.moneyTicket,
      'channel': instance.channel,
      'rank': instance.rank != null ? instance.rank : 0
    };
