SystemNotice.dart 1005 B

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