// 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 'backup2.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', ); BackupV2 _$BackupV2FromJson(Map json) { return _BackupV2.fromJson(json); } /// @nodoc mixin _$BackupV2 { int get version => throw _privateConstructorUsedError; int get date => throw _privateConstructorUsedError; Map get spis => throw _privateConstructorUsedError; Map get snippets => throw _privateConstructorUsedError; Map get keys => throw _privateConstructorUsedError; Map get container => throw _privateConstructorUsedError; Map get history => throw _privateConstructorUsedError; Map get settings => throw _privateConstructorUsedError; /// Serializes this BackupV2 to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $BackupV2CopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $BackupV2CopyWith<$Res> { factory $BackupV2CopyWith(BackupV2 value, $Res Function(BackupV2) then) = _$BackupV2CopyWithImpl<$Res, BackupV2>; @useResult $Res call({ int version, int date, Map spis, Map snippets, Map keys, Map container, Map history, Map settings, }); } /// @nodoc class _$BackupV2CopyWithImpl<$Res, $Val extends BackupV2> implements $BackupV2CopyWith<$Res> { _$BackupV2CopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? version = null, Object? date = null, Object? spis = null, Object? snippets = null, Object? keys = null, Object? container = null, Object? history = null, Object? settings = null, }) { return _then( _value.copyWith( version: null == version ? _value.version : version // ignore: cast_nullable_to_non_nullable as int, date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as int, spis: null == spis ? _value.spis : spis // ignore: cast_nullable_to_non_nullable as Map, snippets: null == snippets ? _value.snippets : snippets // ignore: cast_nullable_to_non_nullable as Map, keys: null == keys ? _value.keys : keys // ignore: cast_nullable_to_non_nullable as Map, container: null == container ? _value.container : container // ignore: cast_nullable_to_non_nullable as Map, history: null == history ? _value.history : history // ignore: cast_nullable_to_non_nullable as Map, settings: null == settings ? _value.settings : settings // ignore: cast_nullable_to_non_nullable as Map, ) as $Val, ); } } /// @nodoc abstract class _$$BackupV2ImplCopyWith<$Res> implements $BackupV2CopyWith<$Res> { factory _$$BackupV2ImplCopyWith( _$BackupV2Impl value, $Res Function(_$BackupV2Impl) then, ) = __$$BackupV2ImplCopyWithImpl<$Res>; @override @useResult $Res call({ int version, int date, Map spis, Map snippets, Map keys, Map container, Map history, Map settings, }); } /// @nodoc class __$$BackupV2ImplCopyWithImpl<$Res> extends _$BackupV2CopyWithImpl<$Res, _$BackupV2Impl> implements _$$BackupV2ImplCopyWith<$Res> { __$$BackupV2ImplCopyWithImpl( _$BackupV2Impl _value, $Res Function(_$BackupV2Impl) _then, ) : super(_value, _then); /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? version = null, Object? date = null, Object? spis = null, Object? snippets = null, Object? keys = null, Object? container = null, Object? history = null, Object? settings = null, }) { return _then( _$BackupV2Impl( version: null == version ? _value.version : version // ignore: cast_nullable_to_non_nullable as int, date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as int, spis: null == spis ? _value._spis : spis // ignore: cast_nullable_to_non_nullable as Map, snippets: null == snippets ? _value._snippets : snippets // ignore: cast_nullable_to_non_nullable as Map, keys: null == keys ? _value._keys : keys // ignore: cast_nullable_to_non_nullable as Map, container: null == container ? _value._container : container // ignore: cast_nullable_to_non_nullable as Map, history: null == history ? _value._history : history // ignore: cast_nullable_to_non_nullable as Map, settings: null == settings ? _value._settings : settings // ignore: cast_nullable_to_non_nullable as Map, ), ); } } /// @nodoc @JsonSerializable() class _$BackupV2Impl extends _BackupV2 { const _$BackupV2Impl({ required this.version, required this.date, required final Map spis, required final Map snippets, required final Map keys, required final Map container, required final Map history, required final Map settings, }) : _spis = spis, _snippets = snippets, _keys = keys, _container = container, _history = history, _settings = settings, super._(); factory _$BackupV2Impl.fromJson(Map json) => _$$BackupV2ImplFromJson(json); @override final int version; @override final int date; final Map _spis; @override Map get spis { if (_spis is EqualUnmodifiableMapView) return _spis; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_spis); } final Map _snippets; @override Map get snippets { if (_snippets is EqualUnmodifiableMapView) return _snippets; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_snippets); } final Map _keys; @override Map get keys { if (_keys is EqualUnmodifiableMapView) return _keys; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_keys); } final Map _container; @override Map get container { if (_container is EqualUnmodifiableMapView) return _container; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_container); } final Map _history; @override Map get history { if (_history is EqualUnmodifiableMapView) return _history; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_history); } final Map _settings; @override Map get settings { if (_settings is EqualUnmodifiableMapView) return _settings; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_settings); } @override String toString() { return 'BackupV2(version: $version, date: $date, spis: $spis, snippets: $snippets, keys: $keys, container: $container, history: $history, settings: $settings)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BackupV2Impl && (identical(other.version, version) || other.version == version) && (identical(other.date, date) || other.date == date) && const DeepCollectionEquality().equals(other._spis, _spis) && const DeepCollectionEquality().equals(other._snippets, _snippets) && const DeepCollectionEquality().equals(other._keys, _keys) && const DeepCollectionEquality().equals( other._container, _container, ) && const DeepCollectionEquality().equals(other._history, _history) && const DeepCollectionEquality().equals(other._settings, _settings)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, version, date, const DeepCollectionEquality().hash(_spis), const DeepCollectionEquality().hash(_snippets), const DeepCollectionEquality().hash(_keys), const DeepCollectionEquality().hash(_container), const DeepCollectionEquality().hash(_history), const DeepCollectionEquality().hash(_settings), ); /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$BackupV2ImplCopyWith<_$BackupV2Impl> get copyWith => __$$BackupV2ImplCopyWithImpl<_$BackupV2Impl>(this, _$identity); @override Map toJson() { return _$$BackupV2ImplToJson(this); } } abstract class _BackupV2 extends BackupV2 { const factory _BackupV2({ required final int version, required final int date, required final Map spis, required final Map snippets, required final Map keys, required final Map container, required final Map history, required final Map settings, }) = _$BackupV2Impl; const _BackupV2._() : super._(); factory _BackupV2.fromJson(Map json) = _$BackupV2Impl.fromJson; @override int get version; @override int get date; @override Map get spis; @override Map get snippets; @override Map get keys; @override Map get container; @override Map get history; @override Map get settings; /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$BackupV2ImplCopyWith<_$BackupV2Impl> get copyWith => throw _privateConstructorUsedError; }