SystemNotice.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import 'package:json_annotation/json_annotation.dart';
  2. import 'GameInfo.dart';
  3. import 'HouseInfo.dart';
  4. import 'PlayerInfo.dart';
  5. part 'SystemNotice.g.dart';
  6. @JsonSerializable()
  7. class SystemNotice {
  8. SystemNotice(this.id, this.gameId, this.houseId, this.userId,this.seasonId,this.content,this.icon,this.typeFlag,this.statusFlag,this.createTime,this.playerId,this.gameInfo,this.houseInfo,this.playerInfo,this.bonus);
  9. int id;
  10. int gameId;//游戏ID
  11. int houseId;//房间ID
  12. int userId;//用户ID
  13. int seasonId;//赛季ID
  14. String content;//内容
  15. String icon;//图标
  16. int typeFlag;//类型
  17. int statusFlag;//状态
  18. int createTime;//创建时间
  19. int playerId;//玩家id
  20. GameInfo gameInfo;//游戏信息
  21. HouseInfo houseInfo;//房间信息
  22. PlayerInfo playerInfo;//玩家信息
  23. int bonus;//奖金
  24. factory SystemNotice.fromJson(Map<String, dynamic> json) =>
  25. _$SystemNoticeFromJson(json);
  26. Map<String, dynamic> toJson() => _$SystemNoticeToJson(this);
  27. // 命名构造函数
  28. SystemNotice.empty();
  29. @override
  30. String toString() {
  31. return _$SystemNoticeToJson(this).toString();
  32. }
  33. }