SystemNotice.g.dart 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  22. // int id;
  23. // int gameId;//游戏ID
  24. // int houseId;//房间ID
  25. // int userId;//用户ID
  26. // int seasonId;//赛季ID
  27. // String content;//内容
  28. // String icon;//图标
  29. // in typeFlag;//0.普通1.比赛结果2.领取奖励
  30. // int statusFlag;//状态 0.未读1.已读
  31. // int createTime;//创建时间
  32. // GameInfo gameInfo;//游戏信息
  33. // HouseInfo houseInfo;//房间信息
  34. Map<String, dynamic> _$SystemNoticeToJson(SystemNotice instance) =>
  35. <String, dynamic>{
  36. 'id': instance.id,
  37. 'gameId': instance.gameId != null ? instance.gameId : 0,
  38. 'houseId': instance.houseId != null ? instance.houseId : 0,
  39. 'userId': instance.userId,
  40. 'seasonId': instance.seasonId != null ? instance.seasonId : 0,
  41. 'icon': instance.icon != null ? instance.icon : '',
  42. 'typeFlag': instance.typeFlag,
  43. 'content': instance.content,
  44. 'statusFlag': instance.statusFlag,
  45. 'createTime': instance.createTime,
  46. 'playerId': instance.playerId != null ? instance.playerId : 0,
  47. 'gameInfo': instance.gameInfo != null ? instance.gameInfo : Map(),
  48. 'HouseInfo': instance.houseInfo != null ? instance.houseInfo : Map(),
  49. };