// GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file // ignore_for_file: type=lint, type=warning, deprecated_member_use, deprecated_member_use_from_same_package // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark part of 'game_dtos.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // GENERATED CODE - DO NOT MODIFY BY HAND // dart format off T _$identity(T value) => value; /// @nodoc mixin _$GameDto { @JsonKey(name: 'id') String? get id;@JsonKey(name: 'name') String? get name;@JsonKey(name: 'type') String? get type;@JsonKey(name: 'is_active') bool? get isActive;@JsonKey(name: 'metadata') Map? get metadata;@JsonKey(name: 'prizes') List? get prizes;@JsonKey(name: 'created_at') String? get createdAt;@JsonKey(name: 'updated_at') String? get updatedAt; /// Create a copy of GameDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $GameDtoCopyWith get copyWith => _$GameDtoCopyWithImpl(this as GameDto, _$identity); /// Serializes this GameDto to a JSON map. Map toJson(); @override bool operator ==(Object other) { final _this = this as GameDto; return identical(this, other) || (other.runtimeType == runtimeType&&other is GameDto&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.name, _this.name) || other.name == _this.name)&&(identical(other.type, _this.type) || other.type == _this.type)&&(identical(other.isActive, _this.isActive) || other.isActive == _this.isActive)&&const DeepCollectionEquality().equals(other.metadata, _this.metadata)&&const DeepCollectionEquality().equals(other.prizes, _this.prizes)&&(identical(other.createdAt, _this.createdAt) || other.createdAt == _this.createdAt)&&(identical(other.updatedAt, _this.updatedAt) || other.updatedAt == _this.updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { final _this = this as GameDto; return Object.hash(runtimeType,_this.id,_this.name,_this.type,_this.isActive,const DeepCollectionEquality().hash(_this.metadata),const DeepCollectionEquality().hash(_this.prizes),_this.createdAt,_this.updatedAt); } @override String toString() { final _this = this as GameDto; return 'GameDto(id: ${_this.id}, name: ${_this.name}, type: ${_this.type}, isActive: ${_this.isActive}, metadata: ${_this.metadata}, prizes: ${_this.prizes}, createdAt: ${_this.createdAt}, updatedAt: ${_this.updatedAt})'; } } /// @nodoc abstract mixin class $GameDtoCopyWith<$Res> { factory $GameDtoCopyWith(GameDto value, $Res Function(GameDto) _then) = _$GameDtoCopyWithImpl; @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'name') String? name,@JsonKey(name: 'type') String? type,@JsonKey(name: 'is_active') bool? isActive,@JsonKey(name: 'metadata') Map? metadata,@JsonKey(name: 'prizes') List? prizes,@JsonKey(name: 'created_at') String? createdAt,@JsonKey(name: 'updated_at') String? updatedAt }); } /// @nodoc class _$GameDtoCopyWithImpl<$Res> implements $GameDtoCopyWith<$Res> { _$GameDtoCopyWithImpl(this._self, this._then); final GameDto _self; final $Res Function(GameDto) _then; /// Create a copy of GameDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? name = freezed,Object? type = freezed,Object? isActive = freezed,Object? metadata = freezed,Object? prizes = freezed,Object? createdAt = freezed,Object? updatedAt = freezed,}) { return _then(GameDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as String?,isActive: freezed == isActive ? _self.isActive : isActive // ignore: cast_nullable_to_non_nullable as bool?,metadata: freezed == metadata ? _self.metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?,prizes: freezed == prizes ? _self.prizes : prizes // ignore: cast_nullable_to_non_nullable as List?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?,updatedAt: freezed == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, )); } } /// Adds pattern-matching-related methods to [GameDto]. extension GameDtoPatterns on GameDto { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _GameDto value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _GameDto() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _GameDto value) $default,){ final _that = this; switch (_that) { case _GameDto(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _GameDto value)? $default,){ final _that = this; switch (_that) { case _GameDto() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'name') String? name, @JsonKey(name: 'type') String? type, @JsonKey(name: 'is_active') bool? isActive, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'prizes') List? prizes, @JsonKey(name: 'created_at') String? createdAt, @JsonKey(name: 'updated_at') String? updatedAt)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _GameDto() when $default != null: return $default(_that.id,_that.name,_that.type,_that.isActive,_that.metadata,_that.prizes,_that.createdAt,_that.updatedAt);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'name') String? name, @JsonKey(name: 'type') String? type, @JsonKey(name: 'is_active') bool? isActive, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'prizes') List? prizes, @JsonKey(name: 'created_at') String? createdAt, @JsonKey(name: 'updated_at') String? updatedAt) $default,) {final _that = this; switch (_that) { case _GameDto(): return $default(_that.id,_that.name,_that.type,_that.isActive,_that.metadata,_that.prizes,_that.createdAt,_that.updatedAt);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'name') String? name, @JsonKey(name: 'type') String? type, @JsonKey(name: 'is_active') bool? isActive, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'prizes') List? prizes, @JsonKey(name: 'created_at') String? createdAt, @JsonKey(name: 'updated_at') String? updatedAt)? $default,) {final _that = this; switch (_that) { case _GameDto() when $default != null: return $default(_that.id,_that.name,_that.type,_that.isActive,_that.metadata,_that.prizes,_that.createdAt,_that.updatedAt);case _: return null; } } } /// @nodoc @JsonSerializable() class _GameDto extends GameDto { const _GameDto({@JsonKey(name: 'id') this.id, @JsonKey(name: 'name') this.name, @JsonKey(name: 'type') this.type, @JsonKey(name: 'is_active') this.isActive, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'prizes') List? prizes, @JsonKey(name: 'created_at') this.createdAt, @JsonKey(name: 'updated_at') this.updatedAt}): _metadata = metadata,_prizes = prizes,super._(); factory _GameDto.fromJson(Map json) => _$GameDtoFromJson(json); @override@JsonKey(name: 'id') final String? id; @override@JsonKey(name: 'name') final String? name; @override@JsonKey(name: 'type') final String? type; @override@JsonKey(name: 'is_active') final bool? isActive; final Map? _metadata; @override@JsonKey(name: 'metadata') Map? get metadata { final value = _metadata; if (value == null) return null; if (_metadata is EqualUnmodifiableMapView) return _metadata; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(value); } final List? _prizes; @override@JsonKey(name: 'prizes') List? get prizes { final value = _prizes; if (value == null) return null; if (_prizes is EqualUnmodifiableListView) return _prizes; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @override@JsonKey(name: 'created_at') final String? createdAt; @override@JsonKey(name: 'updated_at') final String? updatedAt; /// Create a copy of GameDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$GameDtoCopyWith<_GameDto> get copyWith => __$GameDtoCopyWithImpl<_GameDto>(this, _$identity); @override Map toJson() { return _$GameDtoToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _GameDto&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.type, type) || other.type == type)&&(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) || other.updatedAt == updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { return Object.hash(runtimeType,id,name,type,isActive,const DeepCollectionEquality().hash(_metadata),const DeepCollectionEquality().hash(_prizes),createdAt,updatedAt); } @override String toString() { return 'GameDto(id: $id, name: $name, type: $type, isActive: $isActive, metadata: $metadata, prizes: $prizes, createdAt: $createdAt, updatedAt: $updatedAt)'; } } /// @nodoc abstract mixin class _$GameDtoCopyWith<$Res> implements $GameDtoCopyWith<$Res> { factory _$GameDtoCopyWith(_GameDto value, $Res Function(_GameDto) _then) = __$GameDtoCopyWithImpl; @override @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'name') String? name,@JsonKey(name: 'type') String? type,@JsonKey(name: 'is_active') bool? isActive,@JsonKey(name: 'metadata') Map? metadata,@JsonKey(name: 'prizes') List? prizes,@JsonKey(name: 'created_at') String? createdAt,@JsonKey(name: 'updated_at') String? updatedAt }); } /// @nodoc class __$GameDtoCopyWithImpl<$Res> implements _$GameDtoCopyWith<$Res> { __$GameDtoCopyWithImpl(this._self, this._then); final _GameDto _self; final $Res Function(_GameDto) _then; /// Create a copy of GameDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? name = freezed,Object? type = freezed,Object? isActive = freezed,Object? metadata = freezed,Object? prizes = freezed,Object? createdAt = freezed,Object? updatedAt = freezed,}) { return _then(_GameDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as String?,isActive: freezed == isActive ? _self.isActive : isActive // ignore: cast_nullable_to_non_nullable as bool?,metadata: freezed == metadata ? _self._metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?,prizes: freezed == prizes ? _self._prizes : prizes // ignore: cast_nullable_to_non_nullable as List?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?,updatedAt: freezed == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc mixin _$GamePrizeDto { @JsonKey(name: 'id') String? get id;@JsonKey(name: 'game_id') String? get gameId;@JsonKey(name: 'name') String? get name;@JsonKey(name: 'metadata') Map? get metadata;@JsonKey(name: 'created_at') String? get createdAt;@JsonKey(name: 'updated_at') String? get updatedAt; /// Create a copy of GamePrizeDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $GamePrizeDtoCopyWith get copyWith => _$GamePrizeDtoCopyWithImpl(this as GamePrizeDto, _$identity); /// Serializes this GamePrizeDto to a JSON map. Map toJson(); @override bool operator ==(Object other) { final _this = this as GamePrizeDto; return identical(this, other) || (other.runtimeType == runtimeType&&other is GamePrizeDto&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.gameId, _this.gameId) || other.gameId == _this.gameId)&&(identical(other.name, _this.name) || other.name == _this.name)&&const DeepCollectionEquality().equals(other.metadata, _this.metadata)&&(identical(other.createdAt, _this.createdAt) || other.createdAt == _this.createdAt)&&(identical(other.updatedAt, _this.updatedAt) || other.updatedAt == _this.updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { final _this = this as GamePrizeDto; return Object.hash(runtimeType,_this.id,_this.gameId,_this.name,const DeepCollectionEquality().hash(_this.metadata),_this.createdAt,_this.updatedAt); } @override String toString() { final _this = this as GamePrizeDto; return 'GamePrizeDto(id: ${_this.id}, gameId: ${_this.gameId}, name: ${_this.name}, metadata: ${_this.metadata}, createdAt: ${_this.createdAt}, updatedAt: ${_this.updatedAt})'; } } /// @nodoc abstract mixin class $GamePrizeDtoCopyWith<$Res> { factory $GamePrizeDtoCopyWith(GamePrizeDto value, $Res Function(GamePrizeDto) _then) = _$GamePrizeDtoCopyWithImpl; @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'game_id') String? gameId,@JsonKey(name: 'name') String? name,@JsonKey(name: 'metadata') Map? metadata,@JsonKey(name: 'created_at') String? createdAt,@JsonKey(name: 'updated_at') String? updatedAt }); } /// @nodoc class _$GamePrizeDtoCopyWithImpl<$Res> implements $GamePrizeDtoCopyWith<$Res> { _$GamePrizeDtoCopyWithImpl(this._self, this._then); final GamePrizeDto _self; final $Res Function(GamePrizeDto) _then; /// Create a copy of GamePrizeDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? gameId = freezed,Object? name = freezed,Object? metadata = freezed,Object? createdAt = freezed,Object? updatedAt = freezed,}) { return _then(GamePrizeDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,gameId: freezed == gameId ? _self.gameId : gameId // ignore: cast_nullable_to_non_nullable as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?,metadata: freezed == metadata ? _self.metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?,updatedAt: freezed == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, )); } } /// Adds pattern-matching-related methods to [GamePrizeDto]. extension GamePrizeDtoPatterns on GamePrizeDto { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _GamePrizeDto value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _GamePrizeDto() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _GamePrizeDto value) $default,){ final _that = this; switch (_that) { case _GamePrizeDto(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _GamePrizeDto value)? $default,){ final _that = this; switch (_that) { case _GamePrizeDto() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'game_id') String? gameId, @JsonKey(name: 'name') String? name, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'created_at') String? createdAt, @JsonKey(name: 'updated_at') String? updatedAt)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _GamePrizeDto() when $default != null: return $default(_that.id,_that.gameId,_that.name,_that.metadata,_that.createdAt,_that.updatedAt);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'game_id') String? gameId, @JsonKey(name: 'name') String? name, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'created_at') String? createdAt, @JsonKey(name: 'updated_at') String? updatedAt) $default,) {final _that = this; switch (_that) { case _GamePrizeDto(): return $default(_that.id,_that.gameId,_that.name,_that.metadata,_that.createdAt,_that.updatedAt);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'game_id') String? gameId, @JsonKey(name: 'name') String? name, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'created_at') String? createdAt, @JsonKey(name: 'updated_at') String? updatedAt)? $default,) {final _that = this; switch (_that) { case _GamePrizeDto() when $default != null: return $default(_that.id,_that.gameId,_that.name,_that.metadata,_that.createdAt,_that.updatedAt);case _: return null; } } } /// @nodoc @JsonSerializable() class _GamePrizeDto extends GamePrizeDto { const _GamePrizeDto({@JsonKey(name: 'id') this.id, @JsonKey(name: 'game_id') this.gameId, @JsonKey(name: 'name') this.name, @JsonKey(name: 'metadata') Map? metadata, @JsonKey(name: 'created_at') this.createdAt, @JsonKey(name: 'updated_at') this.updatedAt}): _metadata = metadata,super._(); factory _GamePrizeDto.fromJson(Map json) => _$GamePrizeDtoFromJson(json); @override@JsonKey(name: 'id') final String? id; @override@JsonKey(name: 'game_id') final String? gameId; @override@JsonKey(name: 'name') final String? name; final Map? _metadata; @override@JsonKey(name: 'metadata') Map? get metadata { final value = _metadata; if (value == null) return null; if (_metadata is EqualUnmodifiableMapView) return _metadata; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(value); } @override@JsonKey(name: 'created_at') final String? createdAt; @override@JsonKey(name: 'updated_at') final String? updatedAt; /// Create a copy of GamePrizeDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$GamePrizeDtoCopyWith<_GamePrizeDto> get copyWith => __$GamePrizeDtoCopyWithImpl<_GamePrizeDto>(this, _$identity); @override Map toJson() { return _$GamePrizeDtoToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _GamePrizeDto&&(identical(other.id, id) || other.id == id)&&(identical(other.gameId, gameId) || other.gameId == gameId)&&(identical(other.name, name) || other.name == name)&&const DeepCollectionEquality().equals(other.metadata, _metadata)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { return Object.hash(runtimeType,id,gameId,name,const DeepCollectionEquality().hash(_metadata),createdAt,updatedAt); } @override String toString() { return 'GamePrizeDto(id: $id, gameId: $gameId, name: $name, metadata: $metadata, createdAt: $createdAt, updatedAt: $updatedAt)'; } } /// @nodoc abstract mixin class _$GamePrizeDtoCopyWith<$Res> implements $GamePrizeDtoCopyWith<$Res> { factory _$GamePrizeDtoCopyWith(_GamePrizeDto value, $Res Function(_GamePrizeDto) _then) = __$GamePrizeDtoCopyWithImpl; @override @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'game_id') String? gameId,@JsonKey(name: 'name') String? name,@JsonKey(name: 'metadata') Map? metadata,@JsonKey(name: 'created_at') String? createdAt,@JsonKey(name: 'updated_at') String? updatedAt }); } /// @nodoc class __$GamePrizeDtoCopyWithImpl<$Res> implements _$GamePrizeDtoCopyWith<$Res> { __$GamePrizeDtoCopyWithImpl(this._self, this._then); final _GamePrizeDto _self; final $Res Function(_GamePrizeDto) _then; /// Create a copy of GamePrizeDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? gameId = freezed,Object? name = freezed,Object? metadata = freezed,Object? createdAt = freezed,Object? updatedAt = freezed,}) { return _then(_GamePrizeDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,gameId: freezed == gameId ? _self.gameId : gameId // ignore: cast_nullable_to_non_nullable as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?,metadata: freezed == metadata ? _self._metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?,updatedAt: freezed == updatedAt ? _self.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc mixin _$SpinResultDto { @JsonKey(name: 'game_play') GamePlayDto? get gamePlay;@JsonKey(name: 'prize_won') PrizeWonDto? get prizeWon;@JsonKey(name: 'coins_remaining') int? get coinsRemaining; /// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SpinResultDtoCopyWith get copyWith => _$SpinResultDtoCopyWithImpl(this as SpinResultDto, _$identity); /// Serializes this SpinResultDto to a JSON map. Map toJson(); @override bool operator ==(Object other) { final _this = this as SpinResultDto; return identical(this, other) || (other.runtimeType == runtimeType&&other is SpinResultDto&&(identical(other.gamePlay, _this.gamePlay) || other.gamePlay == _this.gamePlay)&&(identical(other.prizeWon, _this.prizeWon) || other.prizeWon == _this.prizeWon)&&(identical(other.coinsRemaining, _this.coinsRemaining) || other.coinsRemaining == _this.coinsRemaining)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { final _this = this as SpinResultDto; return Object.hash(runtimeType,_this.gamePlay,_this.prizeWon,_this.coinsRemaining); } @override String toString() { final _this = this as SpinResultDto; return 'SpinResultDto(gamePlay: ${_this.gamePlay}, prizeWon: ${_this.prizeWon}, coinsRemaining: ${_this.coinsRemaining})'; } } /// @nodoc abstract mixin class $SpinResultDtoCopyWith<$Res> { factory $SpinResultDtoCopyWith(SpinResultDto value, $Res Function(SpinResultDto) _then) = _$SpinResultDtoCopyWithImpl; @useResult $Res call({ @JsonKey(name: 'game_play') GamePlayDto? gamePlay,@JsonKey(name: 'prize_won') PrizeWonDto? prizeWon,@JsonKey(name: 'coins_remaining') int? coinsRemaining }); $GamePlayDtoCopyWith<$Res>? get gamePlay;$PrizeWonDtoCopyWith<$Res>? get prizeWon; } /// @nodoc class _$SpinResultDtoCopyWithImpl<$Res> implements $SpinResultDtoCopyWith<$Res> { _$SpinResultDtoCopyWithImpl(this._self, this._then); final SpinResultDto _self; final $Res Function(SpinResultDto) _then; /// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? gamePlay = freezed,Object? prizeWon = freezed,Object? coinsRemaining = freezed,}) { return _then(SpinResultDto( gamePlay: freezed == gamePlay ? _self.gamePlay : gamePlay // ignore: cast_nullable_to_non_nullable as GamePlayDto?,prizeWon: freezed == prizeWon ? _self.prizeWon : prizeWon // ignore: cast_nullable_to_non_nullable as PrizeWonDto?,coinsRemaining: freezed == coinsRemaining ? _self.coinsRemaining : coinsRemaining // ignore: cast_nullable_to_non_nullable as int?, )); } /// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GamePlayDtoCopyWith<$Res>? get gamePlay { if (_self.gamePlay == null) { return null; } return $GamePlayDtoCopyWith<$Res>(_self.gamePlay!, (value) { return _then(_self.copyWith(gamePlay: value)); }); }/// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PrizeWonDtoCopyWith<$Res>? get prizeWon { if (_self.prizeWon == null) { return null; } return $PrizeWonDtoCopyWith<$Res>(_self.prizeWon!, (value) { return _then(_self.copyWith(prizeWon: value)); }); } } /// Adds pattern-matching-related methods to [SpinResultDto]. extension SpinResultDtoPatterns on SpinResultDto { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _SpinResultDto value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _SpinResultDto() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _SpinResultDto value) $default,){ final _that = this; switch (_that) { case _SpinResultDto(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _SpinResultDto value)? $default,){ final _that = this; switch (_that) { case _SpinResultDto() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function(@JsonKey(name: 'game_play') GamePlayDto? gamePlay, @JsonKey(name: 'prize_won') PrizeWonDto? prizeWon, @JsonKey(name: 'coins_remaining') int? coinsRemaining)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SpinResultDto() when $default != null: return $default(_that.gamePlay,_that.prizeWon,_that.coinsRemaining);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function(@JsonKey(name: 'game_play') GamePlayDto? gamePlay, @JsonKey(name: 'prize_won') PrizeWonDto? prizeWon, @JsonKey(name: 'coins_remaining') int? coinsRemaining) $default,) {final _that = this; switch (_that) { case _SpinResultDto(): return $default(_that.gamePlay,_that.prizeWon,_that.coinsRemaining);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function(@JsonKey(name: 'game_play') GamePlayDto? gamePlay, @JsonKey(name: 'prize_won') PrizeWonDto? prizeWon, @JsonKey(name: 'coins_remaining') int? coinsRemaining)? $default,) {final _that = this; switch (_that) { case _SpinResultDto() when $default != null: return $default(_that.gamePlay,_that.prizeWon,_that.coinsRemaining);case _: return null; } } } /// @nodoc @JsonSerializable() class _SpinResultDto extends SpinResultDto { const _SpinResultDto({@JsonKey(name: 'game_play') this.gamePlay, @JsonKey(name: 'prize_won') this.prizeWon, @JsonKey(name: 'coins_remaining') this.coinsRemaining}): super._(); factory _SpinResultDto.fromJson(Map json) => _$SpinResultDtoFromJson(json); @override@JsonKey(name: 'game_play') final GamePlayDto? gamePlay; @override@JsonKey(name: 'prize_won') final PrizeWonDto? prizeWon; @override@JsonKey(name: 'coins_remaining') final int? coinsRemaining; /// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SpinResultDtoCopyWith<_SpinResultDto> get copyWith => __$SpinResultDtoCopyWithImpl<_SpinResultDto>(this, _$identity); @override Map toJson() { return _$SpinResultDtoToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _SpinResultDto&&(identical(other.gamePlay, gamePlay) || other.gamePlay == gamePlay)&&(identical(other.prizeWon, prizeWon) || other.prizeWon == prizeWon)&&(identical(other.coinsRemaining, coinsRemaining) || other.coinsRemaining == coinsRemaining)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { return Object.hash(runtimeType,gamePlay,prizeWon,coinsRemaining); } @override String toString() { return 'SpinResultDto(gamePlay: $gamePlay, prizeWon: $prizeWon, coinsRemaining: $coinsRemaining)'; } } /// @nodoc abstract mixin class _$SpinResultDtoCopyWith<$Res> implements $SpinResultDtoCopyWith<$Res> { factory _$SpinResultDtoCopyWith(_SpinResultDto value, $Res Function(_SpinResultDto) _then) = __$SpinResultDtoCopyWithImpl; @override @useResult $Res call({ @JsonKey(name: 'game_play') GamePlayDto? gamePlay,@JsonKey(name: 'prize_won') PrizeWonDto? prizeWon,@JsonKey(name: 'coins_remaining') int? coinsRemaining }); @override $GamePlayDtoCopyWith<$Res>? get gamePlay;@override $PrizeWonDtoCopyWith<$Res>? get prizeWon; } /// @nodoc class __$SpinResultDtoCopyWithImpl<$Res> implements _$SpinResultDtoCopyWith<$Res> { __$SpinResultDtoCopyWithImpl(this._self, this._then); final _SpinResultDto _self; final $Res Function(_SpinResultDto) _then; /// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? gamePlay = freezed,Object? prizeWon = freezed,Object? coinsRemaining = freezed,}) { return _then(_SpinResultDto( gamePlay: freezed == gamePlay ? _self.gamePlay : gamePlay // ignore: cast_nullable_to_non_nullable as GamePlayDto?,prizeWon: freezed == prizeWon ? _self.prizeWon : prizeWon // ignore: cast_nullable_to_non_nullable as PrizeWonDto?,coinsRemaining: freezed == coinsRemaining ? _self.coinsRemaining : coinsRemaining // ignore: cast_nullable_to_non_nullable as int?, )); } /// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $GamePlayDtoCopyWith<$Res>? get gamePlay { if (_self.gamePlay == null) { return null; } return $GamePlayDtoCopyWith<$Res>(_self.gamePlay!, (value) { return _then(_self.copyWith(gamePlay: value)); }); }/// Create a copy of SpinResultDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PrizeWonDtoCopyWith<$Res>? get prizeWon { if (_self.prizeWon == null) { return null; } return $PrizeWonDtoCopyWith<$Res>(_self.prizeWon!, (value) { return _then(_self.copyWith(prizeWon: value)); }); } } /// @nodoc mixin _$GamePlayDto { @JsonKey(name: 'id') String? get id;@JsonKey(name: 'game_id') String? get gameId;@JsonKey(name: 'coins_used') int? get coinsUsed;@JsonKey(name: 'created_at') String? get createdAt; /// Create a copy of GamePlayDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $GamePlayDtoCopyWith get copyWith => _$GamePlayDtoCopyWithImpl(this as GamePlayDto, _$identity); /// Serializes this GamePlayDto to a JSON map. Map toJson(); @override bool operator ==(Object other) { final _this = this as GamePlayDto; return identical(this, other) || (other.runtimeType == runtimeType&&other is GamePlayDto&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.gameId, _this.gameId) || other.gameId == _this.gameId)&&(identical(other.coinsUsed, _this.coinsUsed) || other.coinsUsed == _this.coinsUsed)&&(identical(other.createdAt, _this.createdAt) || other.createdAt == _this.createdAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { final _this = this as GamePlayDto; return Object.hash(runtimeType,_this.id,_this.gameId,_this.coinsUsed,_this.createdAt); } @override String toString() { final _this = this as GamePlayDto; return 'GamePlayDto(id: ${_this.id}, gameId: ${_this.gameId}, coinsUsed: ${_this.coinsUsed}, createdAt: ${_this.createdAt})'; } } /// @nodoc abstract mixin class $GamePlayDtoCopyWith<$Res> { factory $GamePlayDtoCopyWith(GamePlayDto value, $Res Function(GamePlayDto) _then) = _$GamePlayDtoCopyWithImpl; @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'game_id') String? gameId,@JsonKey(name: 'coins_used') int? coinsUsed,@JsonKey(name: 'created_at') String? createdAt }); } /// @nodoc class _$GamePlayDtoCopyWithImpl<$Res> implements $GamePlayDtoCopyWith<$Res> { _$GamePlayDtoCopyWithImpl(this._self, this._then); final GamePlayDto _self; final $Res Function(GamePlayDto) _then; /// Create a copy of GamePlayDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? gameId = freezed,Object? coinsUsed = freezed,Object? createdAt = freezed,}) { return _then(GamePlayDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,gameId: freezed == gameId ? _self.gameId : gameId // ignore: cast_nullable_to_non_nullable as String?,coinsUsed: freezed == coinsUsed ? _self.coinsUsed : coinsUsed // ignore: cast_nullable_to_non_nullable as int?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, )); } } /// Adds pattern-matching-related methods to [GamePlayDto]. extension GamePlayDtoPatterns on GamePlayDto { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _GamePlayDto value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _GamePlayDto() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _GamePlayDto value) $default,){ final _that = this; switch (_that) { case _GamePlayDto(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _GamePlayDto value)? $default,){ final _that = this; switch (_that) { case _GamePlayDto() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'game_id') String? gameId, @JsonKey(name: 'coins_used') int? coinsUsed, @JsonKey(name: 'created_at') String? createdAt)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _GamePlayDto() when $default != null: return $default(_that.id,_that.gameId,_that.coinsUsed,_that.createdAt);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'game_id') String? gameId, @JsonKey(name: 'coins_used') int? coinsUsed, @JsonKey(name: 'created_at') String? createdAt) $default,) {final _that = this; switch (_that) { case _GamePlayDto(): return $default(_that.id,_that.gameId,_that.coinsUsed,_that.createdAt);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'game_id') String? gameId, @JsonKey(name: 'coins_used') int? coinsUsed, @JsonKey(name: 'created_at') String? createdAt)? $default,) {final _that = this; switch (_that) { case _GamePlayDto() when $default != null: return $default(_that.id,_that.gameId,_that.coinsUsed,_that.createdAt);case _: return null; } } } /// @nodoc @JsonSerializable() class _GamePlayDto implements GamePlayDto { const _GamePlayDto({@JsonKey(name: 'id') this.id, @JsonKey(name: 'game_id') this.gameId, @JsonKey(name: 'coins_used') this.coinsUsed, @JsonKey(name: 'created_at') this.createdAt}); factory _GamePlayDto.fromJson(Map json) => _$GamePlayDtoFromJson(json); @override@JsonKey(name: 'id') final String? id; @override@JsonKey(name: 'game_id') final String? gameId; @override@JsonKey(name: 'coins_used') final int? coinsUsed; @override@JsonKey(name: 'created_at') final String? createdAt; /// Create a copy of GamePlayDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$GamePlayDtoCopyWith<_GamePlayDto> get copyWith => __$GamePlayDtoCopyWithImpl<_GamePlayDto>(this, _$identity); @override Map toJson() { return _$GamePlayDtoToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _GamePlayDto&&(identical(other.id, id) || other.id == id)&&(identical(other.gameId, gameId) || other.gameId == gameId)&&(identical(other.coinsUsed, coinsUsed) || other.coinsUsed == coinsUsed)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { return Object.hash(runtimeType,id,gameId,coinsUsed,createdAt); } @override String toString() { return 'GamePlayDto(id: $id, gameId: $gameId, coinsUsed: $coinsUsed, createdAt: $createdAt)'; } } /// @nodoc abstract mixin class _$GamePlayDtoCopyWith<$Res> implements $GamePlayDtoCopyWith<$Res> { factory _$GamePlayDtoCopyWith(_GamePlayDto value, $Res Function(_GamePlayDto) _then) = __$GamePlayDtoCopyWithImpl; @override @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'game_id') String? gameId,@JsonKey(name: 'coins_used') int? coinsUsed,@JsonKey(name: 'created_at') String? createdAt }); } /// @nodoc class __$GamePlayDtoCopyWithImpl<$Res> implements _$GamePlayDtoCopyWith<$Res> { __$GamePlayDtoCopyWithImpl(this._self, this._then); final _GamePlayDto _self; final $Res Function(_GamePlayDto) _then; /// Create a copy of GamePlayDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? gameId = freezed,Object? coinsUsed = freezed,Object? createdAt = freezed,}) { return _then(_GamePlayDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,gameId: freezed == gameId ? _self.gameId : gameId // ignore: cast_nullable_to_non_nullable as String?,coinsUsed: freezed == coinsUsed ? _self.coinsUsed : coinsUsed // ignore: cast_nullable_to_non_nullable as int?,createdAt: freezed == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc mixin _$PrizeWonDto { @JsonKey(name: 'id') String? get id;@JsonKey(name: 'name') String? get name; /// Create a copy of PrizeWonDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $PrizeWonDtoCopyWith get copyWith => _$PrizeWonDtoCopyWithImpl(this as PrizeWonDto, _$identity); /// Serializes this PrizeWonDto to a JSON map. Map toJson(); @override bool operator ==(Object other) { final _this = this as PrizeWonDto; return identical(this, other) || (other.runtimeType == runtimeType&&other is PrizeWonDto&&(identical(other.id, _this.id) || other.id == _this.id)&&(identical(other.name, _this.name) || other.name == _this.name)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { final _this = this as PrizeWonDto; return Object.hash(runtimeType,_this.id,_this.name); } @override String toString() { final _this = this as PrizeWonDto; return 'PrizeWonDto(id: ${_this.id}, name: ${_this.name})'; } } /// @nodoc abstract mixin class $PrizeWonDtoCopyWith<$Res> { factory $PrizeWonDtoCopyWith(PrizeWonDto value, $Res Function(PrizeWonDto) _then) = _$PrizeWonDtoCopyWithImpl; @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'name') String? name }); } /// @nodoc class _$PrizeWonDtoCopyWithImpl<$Res> implements $PrizeWonDtoCopyWith<$Res> { _$PrizeWonDtoCopyWithImpl(this._self, this._then); final PrizeWonDto _self; final $Res Function(PrizeWonDto) _then; /// Create a copy of PrizeWonDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? name = freezed,}) { return _then(PrizeWonDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?, )); } } /// Adds pattern-matching-related methods to [PrizeWonDto]. extension PrizeWonDtoPatterns on PrizeWonDto { /// A variant of `map` that fallback to returning `orElse`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeMap(TResult Function( _PrizeWonDto value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _PrizeWonDto() when $default != null: return $default(_that);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// Callbacks receives the raw object, upcasted. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case final Subclass2 value: /// return ...; /// } /// ``` @optionalTypeArgs TResult map(TResult Function( _PrizeWonDto value) $default,){ final _that = this; switch (_that) { case _PrizeWonDto(): return $default(_that);case _: throw StateError('Unexpected subclass'); } } /// A variant of `map` that fallback to returning `null`. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case final Subclass value: /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? mapOrNull(TResult? Function( _PrizeWonDto value)? $default,){ final _that = this; switch (_that) { case _PrizeWonDto() when $default != null: return $default(_that);case _: return null; } } /// A variant of `when` that fallback to an `orElse` callback. /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return orElse(); /// } /// ``` @optionalTypeArgs TResult maybeWhen(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'name') String? name)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _PrizeWonDto() when $default != null: return $default(_that.id,_that.name);case _: return orElse(); } } /// A `switch`-like method, using callbacks. /// /// As opposed to `map`, this offers destructuring. /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when(TResult Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'name') String? name) $default,) {final _that = this; switch (_that) { case _PrizeWonDto(): return $default(_that.id,_that.name);case _: throw StateError('Unexpected subclass'); } } /// A variant of `when` that fallback to returning `null` /// /// It is equivalent to doing: /// ```dart /// switch (sealedClass) { /// case Subclass(:final field): /// return ...; /// case _: /// return null; /// } /// ``` @optionalTypeArgs TResult? whenOrNull(TResult? Function(@JsonKey(name: 'id') String? id, @JsonKey(name: 'name') String? name)? $default,) {final _that = this; switch (_that) { case _PrizeWonDto() when $default != null: return $default(_that.id,_that.name);case _: return null; } } } /// @nodoc @JsonSerializable() class _PrizeWonDto implements PrizeWonDto { const _PrizeWonDto({@JsonKey(name: 'id') this.id, @JsonKey(name: 'name') this.name}); factory _PrizeWonDto.fromJson(Map json) => _$PrizeWonDtoFromJson(json); @override@JsonKey(name: 'id') final String? id; @override@JsonKey(name: 'name') final String? name; /// Create a copy of PrizeWonDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$PrizeWonDtoCopyWith<_PrizeWonDto> get copyWith => __$PrizeWonDtoCopyWithImpl<_PrizeWonDto>(this, _$identity); @override Map toJson() { return _$PrizeWonDtoToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _PrizeWonDto&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode { return Object.hash(runtimeType,id,name); } @override String toString() { return 'PrizeWonDto(id: $id, name: $name)'; } } /// @nodoc abstract mixin class _$PrizeWonDtoCopyWith<$Res> implements $PrizeWonDtoCopyWith<$Res> { factory _$PrizeWonDtoCopyWith(_PrizeWonDto value, $Res Function(_PrizeWonDto) _then) = __$PrizeWonDtoCopyWithImpl; @override @useResult $Res call({ @JsonKey(name: 'id') String? id,@JsonKey(name: 'name') String? name }); } /// @nodoc class __$PrizeWonDtoCopyWithImpl<$Res> implements _$PrizeWonDtoCopyWith<$Res> { __$PrizeWonDtoCopyWithImpl(this._self, this._then); final _PrizeWonDto _self; final $Res Function(_PrizeWonDto) _then; /// Create a copy of PrizeWonDto /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? name = freezed,}) { return _then(_PrizeWonDto( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?, )); } } // dart format on