SystemNotice.dart 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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);
  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. factory SystemNotice.fromJson(Map<String, dynamic> json) =>
  24. _$SystemNoticeFromJson(json);
  25. Map<String, dynamic> toJson() => _$SystemNoticeToJson(this);
  26. // 命名构造函数
  27. SystemNotice.empty();
  28. @override
  29. String toString() {
  30. return _$SystemNoticeToJson(this).toString();
  31. }
  32. }