From b6fa71726e018d6774cbc12f4614b92bd24bc009 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 8 Apr 2026 22:07:06 +0200 Subject: [PATCH] Added scores to match class --- lib/data/dto/match.dart | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/data/dto/match.dart b/lib/data/dto/match.dart index 4874186..69b7c9c 100644 --- a/lib/data/dto/match.dart +++ b/lib/data/dto/match.dart @@ -34,9 +34,7 @@ class Match { @override String toString() { - return 'Match{id: $id, createdAt: $createdAt, endedAt: $endedAt, ' - 'name: $name, game: $game, group: $group, players: $players, ' - 'notes: $notes, scores: $scores, winner: $winner}'; + return 'Match{id: $id, createdAt: $createdAt, endedAt: $endedAt, name: $name, game: $game, group: $group, players: $players, notes: $notes, scores: $scores, winner: $winner}'; } /// Creates a Match instance from a JSON object (ID references format). @@ -54,12 +52,9 @@ class Match { description: '', color: GameColor.blue, icon: '', - ), - // Populated during import via DataTransferService - group = null, - // Populated during import via DataTransferService - players = [], - // Populated during import via DataTransferService + ), // Populated during import via DataTransferService + group = null, // Populated during import via DataTransferService + players = [], // Populated during import via DataTransferService scores = json['scores'], notes = json['notes'] ?? '';