// coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint // 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 // ************************************************************************** T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models', ); GameDto _$GameDtoFromJson(Map json) { return _GameDto.fromJson(json); } /// @nodoc mixin _$GameDto { @JsonKey(name: 'id') String? get id => throw _privateConstructorUsedError; @JsonKey(name: 'name') String? get name => throw _privateConstructorUsedError; @JsonKey(name: 'type') String? get type => throw _privateConstructorUsedError; @JsonKey(name: 'is_active') bool? get isActive => throw _privateConstructorUsedError; @JsonKey(name: 'metadata') Map? get metadata => throw _privateConstructorUsedError; @JsonKey(name: 'prizes') List? get prizes => throw _privateConstructorUsedError; @JsonKey(name: 'created_at') String? get createdAt => throw _privateConstructorUsedError; @JsonKey(name: 'updated_at') String? get updatedAt => throw _privateConstructorUsedError; /// Serializes this GameDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of GameDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $GameDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $GameDtoCopyWith<$Res> { factory $GameDtoCopyWith(GameDto value, $Res Function(GameDto) then) = _$GameDtoCopyWithImpl<$Res, GameDto>; @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, $Val extends GameDto> implements $GameDtoCopyWith<$Res> { _$GameDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _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( _value.copyWith( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, type: freezed == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String?, isActive: freezed == isActive ? _value.isActive : isActive // ignore: cast_nullable_to_non_nullable as bool?, metadata: freezed == metadata ? _value.metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, prizes: freezed == prizes ? _value.prizes : prizes // ignore: cast_nullable_to_non_nullable as List?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } } /// @nodoc abstract class _$$GameDtoImplCopyWith<$Res> implements $GameDtoCopyWith<$Res> { factory _$$GameDtoImplCopyWith( _$GameDtoImpl value, $Res Function(_$GameDtoImpl) then, ) = __$$GameDtoImplCopyWithImpl<$Res>; @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 __$$GameDtoImplCopyWithImpl<$Res> extends _$GameDtoCopyWithImpl<$Res, _$GameDtoImpl> implements _$$GameDtoImplCopyWith<$Res> { __$$GameDtoImplCopyWithImpl( _$GameDtoImpl _value, $Res Function(_$GameDtoImpl) _then, ) : super(_value, _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( _$GameDtoImpl( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, type: freezed == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as String?, isActive: freezed == isActive ? _value.isActive : isActive // ignore: cast_nullable_to_non_nullable as bool?, metadata: freezed == metadata ? _value._metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, prizes: freezed == prizes ? _value._prizes : prizes // ignore: cast_nullable_to_non_nullable as List?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc @JsonSerializable() class _$GameDtoImpl extends _GameDto { const _$GameDtoImpl({ @JsonKey(name: 'id') this.id, @JsonKey(name: 'name') this.name, @JsonKey(name: 'type') this.type, @JsonKey(name: 'is_active') this.isActive, @JsonKey(name: 'metadata') final Map? metadata, @JsonKey(name: 'prizes') final List? prizes, @JsonKey(name: 'created_at') this.createdAt, @JsonKey(name: 'updated_at') this.updatedAt, }) : _metadata = metadata, _prizes = prizes, super._(); factory _$GameDtoImpl.fromJson(Map json) => _$$GameDtoImplFromJson(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; @override String toString() { return 'GameDto(id: $id, name: $name, type: $type, isActive: $isActive, metadata: $metadata, prizes: $prizes, createdAt: $createdAt, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GameDtoImpl && (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 => Object.hash( runtimeType, id, name, type, isActive, const DeepCollectionEquality().hash(_metadata), const DeepCollectionEquality().hash(_prizes), createdAt, updatedAt, ); /// Create a copy of GameDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GameDtoImplCopyWith<_$GameDtoImpl> get copyWith => __$$GameDtoImplCopyWithImpl<_$GameDtoImpl>(this, _$identity); @override Map toJson() { return _$$GameDtoImplToJson(this); } } abstract class _GameDto extends GameDto { const factory _GameDto({ @JsonKey(name: 'id') final String? id, @JsonKey(name: 'name') final String? name, @JsonKey(name: 'type') final String? type, @JsonKey(name: 'is_active') final bool? isActive, @JsonKey(name: 'metadata') final Map? metadata, @JsonKey(name: 'prizes') final List? prizes, @JsonKey(name: 'created_at') final String? createdAt, @JsonKey(name: 'updated_at') final String? updatedAt, }) = _$GameDtoImpl; const _GameDto._() : super._(); factory _GameDto.fromJson(Map json) = _$GameDtoImpl.fromJson; @override @JsonKey(name: 'id') String? get id; @override @JsonKey(name: 'name') String? get name; @override @JsonKey(name: 'type') String? get type; @override @JsonKey(name: 'is_active') bool? get isActive; @override @JsonKey(name: 'metadata') Map? get metadata; @override @JsonKey(name: 'prizes') List? get prizes; @override @JsonKey(name: 'created_at') String? get createdAt; @override @JsonKey(name: 'updated_at') String? get updatedAt; /// Create a copy of GameDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$GameDtoImplCopyWith<_$GameDtoImpl> get copyWith => throw _privateConstructorUsedError; } GamePrizeDto _$GamePrizeDtoFromJson(Map json) { return _GamePrizeDto.fromJson(json); } /// @nodoc mixin _$GamePrizeDto { @JsonKey(name: 'id') String? get id => throw _privateConstructorUsedError; @JsonKey(name: 'game_id') String? get gameId => throw _privateConstructorUsedError; @JsonKey(name: 'name') String? get name => throw _privateConstructorUsedError; @JsonKey(name: 'metadata') Map? get metadata => throw _privateConstructorUsedError; @JsonKey(name: 'created_at') String? get createdAt => throw _privateConstructorUsedError; @JsonKey(name: 'updated_at') String? get updatedAt => throw _privateConstructorUsedError; /// Serializes this GamePrizeDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of GamePrizeDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $GamePrizeDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $GamePrizeDtoCopyWith<$Res> { factory $GamePrizeDtoCopyWith( GamePrizeDto value, $Res Function(GamePrizeDto) then, ) = _$GamePrizeDtoCopyWithImpl<$Res, GamePrizeDto>; @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, $Val extends GamePrizeDto> implements $GamePrizeDtoCopyWith<$Res> { _$GamePrizeDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _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( _value.copyWith( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, gameId: freezed == gameId ? _value.gameId : gameId // ignore: cast_nullable_to_non_nullable as String?, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, metadata: freezed == metadata ? _value.metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } } /// @nodoc abstract class _$$GamePrizeDtoImplCopyWith<$Res> implements $GamePrizeDtoCopyWith<$Res> { factory _$$GamePrizeDtoImplCopyWith( _$GamePrizeDtoImpl value, $Res Function(_$GamePrizeDtoImpl) then, ) = __$$GamePrizeDtoImplCopyWithImpl<$Res>; @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 __$$GamePrizeDtoImplCopyWithImpl<$Res> extends _$GamePrizeDtoCopyWithImpl<$Res, _$GamePrizeDtoImpl> implements _$$GamePrizeDtoImplCopyWith<$Res> { __$$GamePrizeDtoImplCopyWithImpl( _$GamePrizeDtoImpl _value, $Res Function(_$GamePrizeDtoImpl) _then, ) : super(_value, _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( _$GamePrizeDtoImpl( id: freezed == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String?, gameId: freezed == gameId ? _value.gameId : gameId // ignore: cast_nullable_to_non_nullable as String?, name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, metadata: freezed == metadata ? _value._metadata : metadata // ignore: cast_nullable_to_non_nullable as Map?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as String?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc @JsonSerializable() class _$GamePrizeDtoImpl extends _GamePrizeDto { const _$GamePrizeDtoImpl({ @JsonKey(name: 'id') this.id, @JsonKey(name: 'game_id') this.gameId, @JsonKey(name: 'name') this.name, @JsonKey(name: 'metadata') final Map? metadata, @JsonKey(name: 'created_at') this.createdAt, @JsonKey(name: 'updated_at') this.updatedAt, }) : _metadata = metadata, super._(); factory _$GamePrizeDtoImpl.fromJson(Map json) => _$$GamePrizeDtoImplFromJson(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; @override String toString() { return 'GamePrizeDto(id: $id, gameId: $gameId, name: $name, metadata: $metadata, createdAt: $createdAt, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GamePrizeDtoImpl && (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 => Object.hash( runtimeType, id, gameId, name, const DeepCollectionEquality().hash(_metadata), createdAt, updatedAt, ); /// Create a copy of GamePrizeDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GamePrizeDtoImplCopyWith<_$GamePrizeDtoImpl> get copyWith => __$$GamePrizeDtoImplCopyWithImpl<_$GamePrizeDtoImpl>(this, _$identity); @override Map toJson() { return _$$GamePrizeDtoImplToJson(this); } } abstract class _GamePrizeDto extends GamePrizeDto { const factory _GamePrizeDto({ @JsonKey(name: 'id') final String? id, @JsonKey(name: 'game_id') final String? gameId, @JsonKey(name: 'name') final String? name, @JsonKey(name: 'metadata') final Map? metadata, @JsonKey(name: 'created_at') final String? createdAt, @JsonKey(name: 'updated_at') final String? updatedAt, }) = _$GamePrizeDtoImpl; const _GamePrizeDto._() : super._(); factory _GamePrizeDto.fromJson(Map json) = _$GamePrizeDtoImpl.fromJson; @override @JsonKey(name: 'id') String? get id; @override @JsonKey(name: 'game_id') String? get gameId; @override @JsonKey(name: 'name') String? get name; @override @JsonKey(name: 'metadata') Map? get metadata; @override @JsonKey(name: 'created_at') String? get createdAt; @override @JsonKey(name: 'updated_at') String? get updatedAt; /// Create a copy of GamePrizeDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$GamePrizeDtoImplCopyWith<_$GamePrizeDtoImpl> get copyWith => throw _privateConstructorUsedError; }