SystemNotice.g.dart 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. part of 'SystemNotice.dart';
  3. // **************************************************************************
  4. // JsonSerializableGenerator
  5. // **************************************************************************
  6. SystemNotice _$SystemNoticeFromJson(Map<String, dynamic> json) {
  7. return SystemNotice(
  8. json['id'] as int,
  9. json['gameId'] as int,
  10. json['houseId'] as int,
  11. json['userId'] as int,
  12. json['seasonId'] as int,
  13. json['content'] as String,
  14. json['icon'] as String,
  15. json['typeFlag'] as int,
  16. json['statusFlag'] as int,
  17. json['createTime'] as int,
  18. json['playerId'] as int,
  19. json['gameInfo'] != null ? GameInfo.fromJson(json['gameInfo']) : null,
  20. json['houseInfo'] != null ? HouseInfo.fromJson(json['houseInfo']) : null,
  21. json['playerInfo']!=null?PlayerInfo.fromJson(json['playerInfo']):null,
  22. json['bonus']??0);
  23. }
  24. // int id;
  25. // int gameId;//游戏ID
  26. // int houseId;//房间ID
  27. // int userId;//用户ID
  28. // int seasonId;//赛季ID
  29. // String content;//内容
  30. // String icon;//图标
  31. // in typeFlag;//0.普通1.比赛结果2.领取奖励
  32. // int statusFlag;//状态 0.未读1.已读
  33. // int createTime;//创建时间
  34. // GameInfo gameInfo;//游戏信息
  35. // HouseInfo houseInfo;//房间信息
  36. Map<String, dynamic> _$SystemNoticeToJson(SystemNotice instance) =>
  37. <String, dynamic>{
  38. 'id': instance.id,
  39. 'gameId': instance.gameId != null ? instance.gameId : 0,
  40. 'houseId': instance.houseId != null ? instance.houseId : 0,
  41. 'userId': instance.userId,
  42. 'seasonId': instance.seasonId != null ? instance.seasonId : 0,
  43. 'icon': instance.icon != null ? instance.icon : '',
  44. 'typeFlag': instance.typeFlag,
  45. 'content': instance.content,
  46. 'statusFlag': instance.statusFlag,
  47. 'createTime': instance.createTime,
  48. 'playerId': instance.playerId != null ? instance.playerId : 0,
  49. 'gameInfo': instance.gameInfo != null ? instance.gameInfo : {},
  50. 'HouseInfo': instance.houseInfo != null ? instance.houseInfo : {},
  51. 'playerInfo':instance.playerInfo,
  52. 'bonus':instance.bonus
  53. };