// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'PlayerInfo.dart';

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

PlayerInfo _$PlayerInfoFromJson(Map<String, dynamic> json) {
  return PlayerInfo(
      json['id'] as int,
      json['houseId'] as int,
      json['userId'] as int,
      json['statusFlag'] as int,
      json['userInfo'] == null ? null : UserInfo.fromJson(json['userInfo'] as Map<String, dynamic>),
      json['bonus'] as num,
      json['gameInfo'] == null ? null : GameInfo.fromJson(json['gameInfo'] as Map<String, dynamic>),
      json['houseInfo'] == null ? null : HouseInfo.fromJson(json['houseInfo'] as Map<String, dynamic>),
      json['rank'] as int,
      json['houseRank'] as int,
      json['video'] as String,
      json['platinum'] as int,
      json['gold'] as int,
      json['silver'] as int,
      json['bronze'] as int,
      json['medal'] as String,
      json['liveTime'] == null ? null : (json['liveTime'] as num),
      json['score'] == null ? 0 : (json['score'] as num),
      json['ranking'] == null ? 0 : (json['ranking'] as int),
      json['beginTime'] as int,
      json['endTime'] as int,
      json['dataError'] as bool,
      json['killNumber'] != null ? json['killNumber'] as int : 0,
      json['needkill'] != null ? json['needkill'] as int : 999);
}

Map<String, dynamic> _$PlayerInfoToJson(PlayerInfo instance) => <String, dynamic>{
      'id': instance.id,
      'houseId': instance.houseId,
      'userId': instance.userId,
      'statusFlag': instance.statusFlag,
      'userInfo': instance.userInfo,
      'bonus': instance.bonus,
      'gameInfo': instance.gameInfo,
      'houseInfo': instance.houseInfo,
      'rank': instance.rank,
      'houseRank': instance.houseRank,
      'video': instance.video,
      'platinum': instance.platinum,
      'gold': instance.gold,
      'silver': instance.silver,
      'bronze': instance.bronze,
      'medal': instance.medal,
      'beginTime': instance.beginTime,
      'endTime': instance.endTime,
      'dataError': instance.dataError,
      'killNumber': instance.killNumber,
      'needkill': instance.needkill
    };
