// 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 'preset.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'); Preset _$PresetFromJson(Map json) { return _Preset.fromJson(json); } /// @nodoc mixin _$Preset { String get id => throw _privateConstructorUsedError; String get isim => throw _privateConstructorUsedError; String get aciklama => throw _privateConstructorUsedError; Map get ayarlar => throw _privateConstructorUsedError; /// Serializes this Preset to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Preset /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PresetCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PresetCopyWith<$Res> { factory $PresetCopyWith(Preset value, $Res Function(Preset) then) = _$PresetCopyWithImpl<$Res, Preset>; @useResult $Res call( {String id, String isim, String aciklama, Map ayarlar}); } /// @nodoc class _$PresetCopyWithImpl<$Res, $Val extends Preset> implements $PresetCopyWith<$Res> { _$PresetCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Preset /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? isim = null, Object? aciklama = null, Object? ayarlar = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, isim: null == isim ? _value.isim : isim // ignore: cast_nullable_to_non_nullable as String, aciklama: null == aciklama ? _value.aciklama : aciklama // ignore: cast_nullable_to_non_nullable as String, ayarlar: null == ayarlar ? _value.ayarlar : ayarlar // ignore: cast_nullable_to_non_nullable as Map, ) as $Val); } } /// @nodoc abstract class _$$PresetImplCopyWith<$Res> implements $PresetCopyWith<$Res> { factory _$$PresetImplCopyWith( _$PresetImpl value, $Res Function(_$PresetImpl) then) = __$$PresetImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, String isim, String aciklama, Map ayarlar}); } /// @nodoc class __$$PresetImplCopyWithImpl<$Res> extends _$PresetCopyWithImpl<$Res, _$PresetImpl> implements _$$PresetImplCopyWith<$Res> { __$$PresetImplCopyWithImpl( _$PresetImpl _value, $Res Function(_$PresetImpl) _then) : super(_value, _then); /// Create a copy of Preset /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? isim = null, Object? aciklama = null, Object? ayarlar = null, }) { return _then(_$PresetImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, isim: null == isim ? _value.isim : isim // ignore: cast_nullable_to_non_nullable as String, aciklama: null == aciklama ? _value.aciklama : aciklama // ignore: cast_nullable_to_non_nullable as String, ayarlar: null == ayarlar ? _value._ayarlar : ayarlar // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc @JsonSerializable() class _$PresetImpl implements _Preset { const _$PresetImpl( {required this.id, required this.isim, this.aciklama = '', final Map ayarlar = const {}}) : _ayarlar = ayarlar; factory _$PresetImpl.fromJson(Map json) => _$$PresetImplFromJson(json); @override final String id; @override final String isim; @override @JsonKey() final String aciklama; final Map _ayarlar; @override @JsonKey() Map get ayarlar { if (_ayarlar is EqualUnmodifiableMapView) return _ayarlar; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_ayarlar); } @override String toString() { return 'Preset(id: $id, isim: $isim, aciklama: $aciklama, ayarlar: $ayarlar)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PresetImpl && (identical(other.id, id) || other.id == id) && (identical(other.isim, isim) || other.isim == isim) && (identical(other.aciklama, aciklama) || other.aciklama == aciklama) && const DeepCollectionEquality().equals(other._ayarlar, _ayarlar)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, isim, aciklama, const DeepCollectionEquality().hash(_ayarlar)); /// Create a copy of Preset /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PresetImplCopyWith<_$PresetImpl> get copyWith => __$$PresetImplCopyWithImpl<_$PresetImpl>(this, _$identity); @override Map toJson() { return _$$PresetImplToJson( this, ); } } abstract class _Preset implements Preset { const factory _Preset( {required final String id, required final String isim, final String aciklama, final Map ayarlar}) = _$PresetImpl; factory _Preset.fromJson(Map json) = _$PresetImpl.fromJson; @override String get id; @override String get isim; @override String get aciklama; @override Map get ayarlar; /// Create a copy of Preset /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PresetImplCopyWith<_$PresetImpl> get copyWith => throw _privateConstructorUsedError; }