Ferish Wheel and Music
This commit is contained in:
@@ -22,6 +22,7 @@ mixin _$Game {
|
||||
String get type => throw _privateConstructorUsedError;
|
||||
bool get isActive => throw _privateConstructorUsedError;
|
||||
Map<String, dynamic> get metadata => throw _privateConstructorUsedError;
|
||||
List<GamePrize> get prizes => throw _privateConstructorUsedError;
|
||||
String get createdAt => throw _privateConstructorUsedError;
|
||||
String get updatedAt => throw _privateConstructorUsedError;
|
||||
|
||||
@@ -42,6 +43,7 @@ abstract class $GameCopyWith<$Res> {
|
||||
String type,
|
||||
bool isActive,
|
||||
Map<String, dynamic> metadata,
|
||||
List<GamePrize> prizes,
|
||||
String createdAt,
|
||||
String updatedAt,
|
||||
});
|
||||
@@ -67,6 +69,7 @@ class _$GameCopyWithImpl<$Res, $Val extends Game>
|
||||
Object? type = null,
|
||||
Object? isActive = null,
|
||||
Object? metadata = null,
|
||||
Object? prizes = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
}) {
|
||||
@@ -92,6 +95,10 @@ class _$GameCopyWithImpl<$Res, $Val extends Game>
|
||||
? _value.metadata
|
||||
: metadata // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, dynamic>,
|
||||
prizes: null == prizes
|
||||
? _value.prizes
|
||||
: prizes // ignore: cast_nullable_to_non_nullable
|
||||
as List<GamePrize>,
|
||||
createdAt: null == createdAt
|
||||
? _value.createdAt
|
||||
: createdAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -120,6 +127,7 @@ abstract class _$$GameImplCopyWith<$Res> implements $GameCopyWith<$Res> {
|
||||
String type,
|
||||
bool isActive,
|
||||
Map<String, dynamic> metadata,
|
||||
List<GamePrize> prizes,
|
||||
String createdAt,
|
||||
String updatedAt,
|
||||
});
|
||||
@@ -142,6 +150,7 @@ class __$$GameImplCopyWithImpl<$Res>
|
||||
Object? type = null,
|
||||
Object? isActive = null,
|
||||
Object? metadata = null,
|
||||
Object? prizes = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
}) {
|
||||
@@ -167,6 +176,10 @@ class __$$GameImplCopyWithImpl<$Res>
|
||||
? _value._metadata
|
||||
: metadata // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, dynamic>,
|
||||
prizes: null == prizes
|
||||
? _value._prizes
|
||||
: prizes // ignore: cast_nullable_to_non_nullable
|
||||
as List<GamePrize>,
|
||||
createdAt: null == createdAt
|
||||
? _value.createdAt
|
||||
: createdAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -189,9 +202,11 @@ class _$GameImpl implements _Game {
|
||||
required this.type,
|
||||
required this.isActive,
|
||||
required final Map<String, dynamic> metadata,
|
||||
required final List<GamePrize> prizes,
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
}) : _metadata = metadata;
|
||||
}) : _metadata = metadata,
|
||||
_prizes = prizes;
|
||||
|
||||
@override
|
||||
final String id;
|
||||
@@ -209,6 +224,14 @@ class _$GameImpl implements _Game {
|
||||
return EqualUnmodifiableMapView(_metadata);
|
||||
}
|
||||
|
||||
final List<GamePrize> _prizes;
|
||||
@override
|
||||
List<GamePrize> get prizes {
|
||||
if (_prizes is EqualUnmodifiableListView) return _prizes;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_prizes);
|
||||
}
|
||||
|
||||
@override
|
||||
final String createdAt;
|
||||
@override
|
||||
@@ -216,7 +239,7 @@ class _$GameImpl implements _Game {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Game(id: $id, name: $name, type: $type, isActive: $isActive, metadata: $metadata, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
return 'Game(id: $id, name: $name, type: $type, isActive: $isActive, metadata: $metadata, prizes: $prizes, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -230,6 +253,7 @@ class _$GameImpl implements _Game {
|
||||
(identical(other.isActive, isActive) ||
|
||||
other.isActive == isActive) &&
|
||||
const DeepCollectionEquality().equals(other._metadata, _metadata) &&
|
||||
const DeepCollectionEquality().equals(other._prizes, _prizes) &&
|
||||
(identical(other.createdAt, createdAt) ||
|
||||
other.createdAt == createdAt) &&
|
||||
(identical(other.updatedAt, updatedAt) ||
|
||||
@@ -244,6 +268,7 @@ class _$GameImpl implements _Game {
|
||||
type,
|
||||
isActive,
|
||||
const DeepCollectionEquality().hash(_metadata),
|
||||
const DeepCollectionEquality().hash(_prizes),
|
||||
createdAt,
|
||||
updatedAt,
|
||||
);
|
||||
@@ -264,6 +289,7 @@ abstract class _Game implements Game {
|
||||
required final String type,
|
||||
required final bool isActive,
|
||||
required final Map<String, dynamic> metadata,
|
||||
required final List<GamePrize> prizes,
|
||||
required final String createdAt,
|
||||
required final String updatedAt,
|
||||
}) = _$GameImpl;
|
||||
@@ -279,6 +305,8 @@ abstract class _Game implements Game {
|
||||
@override
|
||||
Map<String, dynamic> get metadata;
|
||||
@override
|
||||
List<GamePrize> get prizes;
|
||||
@override
|
||||
String get createdAt;
|
||||
@override
|
||||
String get updatedAt;
|
||||
@@ -296,12 +324,7 @@ mixin _$GamePrize {
|
||||
String get id => throw _privateConstructorUsedError;
|
||||
String get gameId => throw _privateConstructorUsedError;
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
int get weight => throw _privateConstructorUsedError;
|
||||
int get stock => throw _privateConstructorUsedError;
|
||||
int get maxStock => throw _privateConstructorUsedError;
|
||||
int get threshold => throw _privateConstructorUsedError;
|
||||
Map<String, dynamic> get metadata => throw _privateConstructorUsedError;
|
||||
Game get game => throw _privateConstructorUsedError;
|
||||
String get createdAt => throw _privateConstructorUsedError;
|
||||
String get updatedAt => throw _privateConstructorUsedError;
|
||||
|
||||
@@ -321,17 +344,10 @@ abstract class $GamePrizeCopyWith<$Res> {
|
||||
String id,
|
||||
String gameId,
|
||||
String name,
|
||||
int weight,
|
||||
int stock,
|
||||
int maxStock,
|
||||
int threshold,
|
||||
Map<String, dynamic> metadata,
|
||||
Game game,
|
||||
String createdAt,
|
||||
String updatedAt,
|
||||
});
|
||||
|
||||
$GameCopyWith<$Res> get game;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -352,12 +368,7 @@ class _$GamePrizeCopyWithImpl<$Res, $Val extends GamePrize>
|
||||
Object? id = null,
|
||||
Object? gameId = null,
|
||||
Object? name = null,
|
||||
Object? weight = null,
|
||||
Object? stock = null,
|
||||
Object? maxStock = null,
|
||||
Object? threshold = null,
|
||||
Object? metadata = null,
|
||||
Object? game = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
}) {
|
||||
@@ -375,30 +386,10 @@ class _$GamePrizeCopyWithImpl<$Res, $Val extends GamePrize>
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
weight: null == weight
|
||||
? _value.weight
|
||||
: weight // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
stock: null == stock
|
||||
? _value.stock
|
||||
: stock // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
maxStock: null == maxStock
|
||||
? _value.maxStock
|
||||
: maxStock // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
threshold: null == threshold
|
||||
? _value.threshold
|
||||
: threshold // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
metadata: null == metadata
|
||||
? _value.metadata
|
||||
: metadata // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, dynamic>,
|
||||
game: null == game
|
||||
? _value.game
|
||||
: game // ignore: cast_nullable_to_non_nullable
|
||||
as Game,
|
||||
createdAt: null == createdAt
|
||||
? _value.createdAt
|
||||
: createdAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -411,16 +402,6 @@ class _$GamePrizeCopyWithImpl<$Res, $Val extends GamePrize>
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
|
||||
/// Create a copy of GamePrize
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$GameCopyWith<$Res> get game {
|
||||
return $GameCopyWith<$Res>(_value.game, (value) {
|
||||
return _then(_value.copyWith(game: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -436,18 +417,10 @@ abstract class _$$GamePrizeImplCopyWith<$Res>
|
||||
String id,
|
||||
String gameId,
|
||||
String name,
|
||||
int weight,
|
||||
int stock,
|
||||
int maxStock,
|
||||
int threshold,
|
||||
Map<String, dynamic> metadata,
|
||||
Game game,
|
||||
String createdAt,
|
||||
String updatedAt,
|
||||
});
|
||||
|
||||
@override
|
||||
$GameCopyWith<$Res> get game;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -467,12 +440,7 @@ class __$$GamePrizeImplCopyWithImpl<$Res>
|
||||
Object? id = null,
|
||||
Object? gameId = null,
|
||||
Object? name = null,
|
||||
Object? weight = null,
|
||||
Object? stock = null,
|
||||
Object? maxStock = null,
|
||||
Object? threshold = null,
|
||||
Object? metadata = null,
|
||||
Object? game = null,
|
||||
Object? createdAt = null,
|
||||
Object? updatedAt = null,
|
||||
}) {
|
||||
@@ -490,30 +458,10 @@ class __$$GamePrizeImplCopyWithImpl<$Res>
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
weight: null == weight
|
||||
? _value.weight
|
||||
: weight // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
stock: null == stock
|
||||
? _value.stock
|
||||
: stock // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
maxStock: null == maxStock
|
||||
? _value.maxStock
|
||||
: maxStock // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
threshold: null == threshold
|
||||
? _value.threshold
|
||||
: threshold // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
metadata: null == metadata
|
||||
? _value._metadata
|
||||
: metadata // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, dynamic>,
|
||||
game: null == game
|
||||
? _value.game
|
||||
: game // ignore: cast_nullable_to_non_nullable
|
||||
as Game,
|
||||
createdAt: null == createdAt
|
||||
? _value.createdAt
|
||||
: createdAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -534,12 +482,7 @@ class _$GamePrizeImpl implements _GamePrize {
|
||||
required this.id,
|
||||
required this.gameId,
|
||||
required this.name,
|
||||
required this.weight,
|
||||
required this.stock,
|
||||
required this.maxStock,
|
||||
required this.threshold,
|
||||
required final Map<String, dynamic> metadata,
|
||||
required this.game,
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
}) : _metadata = metadata;
|
||||
@@ -550,14 +493,6 @@ class _$GamePrizeImpl implements _GamePrize {
|
||||
final String gameId;
|
||||
@override
|
||||
final String name;
|
||||
@override
|
||||
final int weight;
|
||||
@override
|
||||
final int stock;
|
||||
@override
|
||||
final int maxStock;
|
||||
@override
|
||||
final int threshold;
|
||||
final Map<String, dynamic> _metadata;
|
||||
@override
|
||||
Map<String, dynamic> get metadata {
|
||||
@@ -566,8 +501,6 @@ class _$GamePrizeImpl implements _GamePrize {
|
||||
return EqualUnmodifiableMapView(_metadata);
|
||||
}
|
||||
|
||||
@override
|
||||
final Game game;
|
||||
@override
|
||||
final String createdAt;
|
||||
@override
|
||||
@@ -575,7 +508,7 @@ class _$GamePrizeImpl implements _GamePrize {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GamePrize(id: $id, gameId: $gameId, name: $name, weight: $weight, stock: $stock, maxStock: $maxStock, threshold: $threshold, metadata: $metadata, game: $game, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
return 'GamePrize(id: $id, gameId: $gameId, name: $name, metadata: $metadata, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -586,14 +519,7 @@ class _$GamePrizeImpl implements _GamePrize {
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
(identical(other.gameId, gameId) || other.gameId == gameId) &&
|
||||
(identical(other.name, name) || other.name == name) &&
|
||||
(identical(other.weight, weight) || other.weight == weight) &&
|
||||
(identical(other.stock, stock) || other.stock == stock) &&
|
||||
(identical(other.maxStock, maxStock) ||
|
||||
other.maxStock == maxStock) &&
|
||||
(identical(other.threshold, threshold) ||
|
||||
other.threshold == threshold) &&
|
||||
const DeepCollectionEquality().equals(other._metadata, _metadata) &&
|
||||
(identical(other.game, game) || other.game == game) &&
|
||||
(identical(other.createdAt, createdAt) ||
|
||||
other.createdAt == createdAt) &&
|
||||
(identical(other.updatedAt, updatedAt) ||
|
||||
@@ -606,12 +532,7 @@ class _$GamePrizeImpl implements _GamePrize {
|
||||
id,
|
||||
gameId,
|
||||
name,
|
||||
weight,
|
||||
stock,
|
||||
maxStock,
|
||||
threshold,
|
||||
const DeepCollectionEquality().hash(_metadata),
|
||||
game,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
);
|
||||
@@ -630,12 +551,7 @@ abstract class _GamePrize implements GamePrize {
|
||||
required final String id,
|
||||
required final String gameId,
|
||||
required final String name,
|
||||
required final int weight,
|
||||
required final int stock,
|
||||
required final int maxStock,
|
||||
required final int threshold,
|
||||
required final Map<String, dynamic> metadata,
|
||||
required final Game game,
|
||||
required final String createdAt,
|
||||
required final String updatedAt,
|
||||
}) = _$GamePrizeImpl;
|
||||
@@ -647,18 +563,8 @@ abstract class _GamePrize implements GamePrize {
|
||||
@override
|
||||
String get name;
|
||||
@override
|
||||
int get weight;
|
||||
@override
|
||||
int get stock;
|
||||
@override
|
||||
int get maxStock;
|
||||
@override
|
||||
int get threshold;
|
||||
@override
|
||||
Map<String, dynamic> get metadata;
|
||||
@override
|
||||
Game get game;
|
||||
@override
|
||||
String get createdAt;
|
||||
@override
|
||||
String get updatedAt;
|
||||
|
||||
Reference in New Issue
Block a user