feat: kot and hakem kot
This commit is contained in:
@@ -93,11 +93,13 @@ class GameState {
|
||||
class HandResult {
|
||||
final int winnerTeam;
|
||||
final bool kot;
|
||||
final bool hakemKot;
|
||||
final int points;
|
||||
final List<int> scores;
|
||||
HandResult.fromJson(Map<String, dynamic> j)
|
||||
: winnerTeam = (j['winner_team'] ?? 0) as int,
|
||||
kot = (j['kot'] ?? false) as bool,
|
||||
hakemKot = (j['hakem_kot'] ?? false) as bool,
|
||||
points = (j['points'] ?? 0) as int,
|
||||
scores = ((j['scores'] as List?) ?? [])
|
||||
.map((e) => (e as num).toInt())
|
||||
|
||||
Reference in New Issue
Block a user