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 json) => _$ParticipatingInfoFromJson(json); int userId; int competitionId; int points; int bonus; int received; int rank; int currentRank; UserInfo userInfo; Map toJson() => _$ParticipatingInfoToJson(this); @override String toString() { return _$ParticipatingInfoToJson(this).toString(); } }