SystemNotice.dart 776 B

123456789101112131415161718192021222324252627
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'SystemNotice.g.dart';
  3. @JsonSerializable()
  4. class SystemNotice {
  5. SystemNotice(this.id, this.gameId, this.houseId, this.userId,this.seasonId,this.content,this.icon,this.statusFlag,this.createTime);
  6. int id;
  7. int gameId;//游戏ID
  8. int houseId;//房间ID
  9. int userId;//用户ID
  10. int seasonId;//赛季ID
  11. String content;//内容
  12. String icon;//图标
  13. int statusFlag;//状态
  14. int createTime;//创建时间
  15. factory SystemNotice.fromJson(Map<String, dynamic> json) =>
  16. _$SystemNoticeFromJson(json);
  17. Map<String, dynamic> toJson() => _$SystemNoticeToJson(this);
  18. // 命名构造函数
  19. SystemNotice.empty();
  20. @override
  21. String toString() {
  22. return _$SystemNoticeToJson(this).toString();
  23. }
  24. }