Renamed folder to "models"

This commit is contained in:
2026-04-08 22:27:50 +02:00
parent 14d46d7e52
commit ad6d08374e
46 changed files with 795 additions and 569 deletions

View File

@@ -0,0 +1,30 @@
class ScoreEntry {
final String playerId;
final String matchId;
final int roundNumber;
int score = 0;
int change = 0;
ScoreEntry({
required this.playerId,
required this.matchId,
required this.roundNumber,
required this.score,
required this.change,
});
ScoreEntry.fromJson(Map<String, dynamic> json)
: playerId = json['playerId'],
matchId = json['matchId'],
roundNumber = json['roundNumber'],
score = json['score'],
change = json['change'];
Map<String, dynamic> toJson() => {
'playerId': playerId,
'matchId': matchId,
'roundNumber': roundNumber,
'score': score,
'change': change,
};
}