Added scores to match class
This commit is contained in:
@@ -34,9 +34,7 @@ class Match {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return 'Match{id: $id, createdAt: $createdAt, endedAt: $endedAt, '
|
return 'Match{id: $id, createdAt: $createdAt, endedAt: $endedAt, name: $name, game: $game, group: $group, players: $players, notes: $notes, scores: $scores, winner: $winner}';
|
||||||
'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).
|
/// Creates a Match instance from a JSON object (ID references format).
|
||||||
@@ -54,12 +52,9 @@ class Match {
|
|||||||
description: '',
|
description: '',
|
||||||
color: GameColor.blue,
|
color: GameColor.blue,
|
||||||
icon: '',
|
icon: '',
|
||||||
),
|
), // Populated during import via DataTransferService
|
||||||
// Populated during import via DataTransferService
|
group = null, // Populated during import via DataTransferService
|
||||||
group = null,
|
players = [], // Populated during import via DataTransferService
|
||||||
// Populated during import via DataTransferService
|
|
||||||
players = [],
|
|
||||||
// Populated during import via DataTransferService
|
|
||||||
scores = json['scores'],
|
scores = json['scores'],
|
||||||
notes = json['notes'] ?? '';
|
notes = json['notes'] ?? '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user