| 12345678910111213141516171819202122232425262728 |
- import 'package:json_annotation/json_annotation.dart';
- import 'package:wanna_battle/model/UserInfo.dart';
- part 'ParticipatingInfo.g.dart';
- @JsonSerializable()
- class ParticipatingInfo {
- ParticipatingInfo.empty();
- ParticipatingInfo(this.userId, this.competitionId, this.points, this.bonus, this.received, this.rank, this.currentRank, this.userInfo);
- factory ParticipatingInfo.fromJson(Map<String, dynamic> json) => _$ParticipatingInfoFromJson(json);
- int userId;
- int competitionId;
- int points;
- int bonus;
- int received;
- int rank;
- int currentRank;
- UserInfo userInfo;
- Map<String, dynamic> toJson() => _$ParticipatingInfoToJson(this);
- @override
- String toString() {
- return _$ParticipatingInfoToJson(this).toString();
- }
- }
|