HouseLevel.dart 857 B

1234567891011121314151617181920212223242526272829
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'HouseLevel.g.dart';
  3. @JsonSerializable()
  4. class HouseLevel {
  5. HouseLevel(this.id, this.levelName, this.icon, this.entryCoin,this.firstRatio,this.secondRatio,this.thirdRatio,this.feeRatio,this.poolRatio,this.avgRatio);
  6. int id;
  7. String levelName;//名称
  8. String icon;//图标
  9. int entryCoin;//加入金额
  10. num firstRatio;//第一名比率
  11. num secondRatio;//第二名比率
  12. num thirdRatio;//第三名比率
  13. num feeRatio;//服务费
  14. num poolRatio;//奖金池
  15. num avgRatio;//平均分比例
  16. factory HouseLevel.fromJson(Map<String, dynamic> json) =>
  17. _$HouseLevelFromJson(json);
  18. Map<String, dynamic> toJson() => _$HouseLevelToJson(this);
  19. // 命名构造函数
  20. HouseLevel.empty();
  21. @override
  22. String toString() {
  23. return _$HouseLevelToJson(this).toString();
  24. }
  25. }