// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'SystemNotice.dart';

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

SystemNotice _$SystemNoticeFromJson(Map<String, dynamic> json) {
  return SystemNotice(
      json['id'] as int,
      json['gameId'] as int,
      json['houseId'] as int,
      json['userId'] as int,
      json['seasonId'] as int,
      json['content'] as String,
      json['icon'] as String,
      json['typeFlag'] as int,
      json['statusFlag'] as int,
      json['createTime'] as int,
      json['playerId'] as int,
      json['gameInfo'] != null ? GameInfo.fromJson(json['gameInfo']) : null,
      json['houseInfo'] != null ? HouseInfo.fromJson(json['houseInfo']) : null,
      json['playerInfo']!=null?PlayerInfo.fromJson(json['playerInfo']):null,
      json['bonus']??0);
}

// int id;
//   int gameId;//游戏ID
//   int houseId;//房间ID
//   int userId;//用户ID
//   int seasonId;//赛季ID
//   String content;//内容
//   String icon;//图标
//   in typeFlag;//0.普通1.比赛结果2.领取奖励
//   int statusFlag;//状态 0.未读1.已读
//   int createTime;//创建时间
// GameInfo gameInfo;//游戏信息
// HouseInfo houseInfo;//房间信息
Map<String, dynamic> _$SystemNoticeToJson(SystemNotice instance) =>
    <String, dynamic>{
      'id': instance.id,
      'gameId': instance.gameId != null ? instance.gameId : 0,
      'houseId': instance.houseId != null ? instance.houseId : 0,
      'userId': instance.userId,
      'seasonId': instance.seasonId != null ? instance.seasonId : 0,
      'icon': instance.icon != null ? instance.icon : '',
      'typeFlag': instance.typeFlag,
      'content': instance.content,
      'statusFlag': instance.statusFlag,
      'createTime': instance.createTime,
      'playerId': instance.playerId != null ? instance.playerId : 0,
      'gameInfo': instance.gameInfo != null ? instance.gameInfo : {},
      'HouseInfo': instance.houseInfo != null ? instance.houseInfo : {},
      'playerInfo':instance.playerInfo,
      'bonus':instance.bonus
    };
