Ferish Wheel and Music
This commit is contained in:
@@ -8,6 +8,7 @@ class Game with _$Game {
|
||||
required String type,
|
||||
required bool isActive,
|
||||
required Map<String, dynamic> metadata,
|
||||
required List<GamePrize> prizes,
|
||||
required String createdAt,
|
||||
required String updatedAt,
|
||||
}) = _Game;
|
||||
@@ -18,6 +19,7 @@ class Game with _$Game {
|
||||
type: '',
|
||||
isActive: false,
|
||||
metadata: {},
|
||||
prizes: [],
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
);
|
||||
|
||||
@@ -6,26 +6,16 @@ class GamePrize with _$GamePrize {
|
||||
required String id,
|
||||
required String gameId,
|
||||
required String name,
|
||||
required int weight,
|
||||
required int stock,
|
||||
required int maxStock,
|
||||
required int threshold,
|
||||
required Map<String, dynamic> metadata,
|
||||
required Game game,
|
||||
required String createdAt,
|
||||
required String updatedAt,
|
||||
}) = _GamePrize;
|
||||
|
||||
factory GamePrize.empty() => GamePrize(
|
||||
factory GamePrize.empty() => const GamePrize(
|
||||
id: '',
|
||||
gameId: '',
|
||||
name: '',
|
||||
weight: 0,
|
||||
stock: 0,
|
||||
maxStock: 0,
|
||||
threshold: 0,
|
||||
metadata: const {},
|
||||
game: Game.empty(),
|
||||
metadata: {},
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user