ParticipatingInfo.dart 666 B

1234567891011121314151617181920212223242526
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'ParticipatingInfo.g.dart';
  3. @JsonSerializable()
  4. class ParticipatingInfo {
  5. ParticipatingInfo.empty();
  6. ParticipatingInfo(this.userId, this.competitionId, this.points, this.bonus, this.received, this.rank, this.currentRank);
  7. factory ParticipatingInfo.fromJson(Map<String, dynamic> json) => _$ParticipatingInfoFromJson(json);
  8. int userId;
  9. int competitionId;
  10. int points;
  11. int bonus;
  12. int received;
  13. int rank;
  14. int currentRank;
  15. Map<String, dynamic> toJson() => _$ParticipatingInfoToJson(this);
  16. @override
  17. String toString() {
  18. return _$ParticipatingInfoToJson(this).toString();
  19. }
  20. }