// GENERATED CODE - DO NOT MODIFY BY HAND // coverage:ignore-file // 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 // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$BackupV2 { int get version; int get date; Map get spis; Map get snippets; Map get keys; Map get container; Map get history; Map get settings; /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $BackupV2CopyWith get copyWith => _$BackupV2CopyWithImpl(this as BackupV2, _$identity); /// Serializes this BackupV2 to a JSON map. Map toJson(); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is BackupV2&&(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)); @override String toString() { return 'BackupV2(version: $version, date: $date, spis: $spis, snippets: $snippets, keys: $keys, container: $container, history: $history, settings: $settings)'; } } /// @nodoc abstract mixin class $BackupV2CopyWith<$Res> { factory $BackupV2CopyWith(BackupV2 value, $Res Function(BackupV2) _then) = _$BackupV2CopyWithImpl; @useResult $Res call({ int version, int date, Map spis, Map snippets, Map keys, Map container, Map history, Map settings }); } /// @nodoc class _$BackupV2CopyWithImpl<$Res> implements $BackupV2CopyWith<$Res> { _$BackupV2CopyWithImpl(this._self, this._then); final BackupV2 _self; final $Res Function(BackupV2) _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(_self.copyWith( version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable as int,date: null == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as int,spis: null == spis ? _self.spis : spis // ignore: cast_nullable_to_non_nullable as Map,snippets: null == snippets ? _self.snippets : snippets // ignore: cast_nullable_to_non_nullable as Map,keys: null == keys ? _self.keys : keys // ignore: cast_nullable_to_non_nullable as Map,container: null == container ? _self.container : container // ignore: cast_nullable_to_non_nullable as Map,history: null == history ? _self.history : history // ignore: cast_nullable_to_non_nullable as Map,settings: null == settings ? _self.settings : settings // ignore: cast_nullable_to_non_nullable as Map, )); } } /// Adds pattern-matching-related methods to [BackupV2]. extension BackupV2Patterns on BackupV2 { /// 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( _BackupV2 value)? $default,{required TResult orElse(),}){ final _that = this; switch (_that) { case _BackupV2() 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( _BackupV2 value) $default,){ final _that = this; switch (_that) { case _BackupV2(): 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( _BackupV2 value)? $default,){ final _that = this; switch (_that) { case _BackupV2() 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( int version, int date, Map spis, Map snippets, Map keys, Map container, Map history, Map settings)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _BackupV2() when $default != null: return $default(_that.version,_that.date,_that.spis,_that.snippets,_that.keys,_that.container,_that.history,_that.settings);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( int version, int date, Map spis, Map snippets, Map keys, Map container, Map history, Map settings) $default,) {final _that = this; switch (_that) { case _BackupV2(): return $default(_that.version,_that.date,_that.spis,_that.snippets,_that.keys,_that.container,_that.history,_that.settings);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( int version, int date, Map spis, Map snippets, Map keys, Map container, Map history, Map settings)? $default,) {final _that = this; switch (_that) { case _BackupV2() when $default != null: return $default(_that.version,_that.date,_that.spis,_that.snippets,_that.keys,_that.container,_that.history,_that.settings);case _: return null; } } } /// @nodoc @JsonSerializable() class _BackupV2 extends BackupV2 { const _BackupV2({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 _BackupV2.fromJson(Map json) => _$BackupV2FromJson(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); } /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$BackupV2CopyWith<_BackupV2> get copyWith => __$BackupV2CopyWithImpl<_BackupV2>(this, _$identity); @override Map toJson() { return _$BackupV2ToJson(this, ); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _BackupV2&&(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)); @override String toString() { return 'BackupV2(version: $version, date: $date, spis: $spis, snippets: $snippets, keys: $keys, container: $container, history: $history, settings: $settings)'; } } /// @nodoc abstract mixin class _$BackupV2CopyWith<$Res> implements $BackupV2CopyWith<$Res> { factory _$BackupV2CopyWith(_BackupV2 value, $Res Function(_BackupV2) _then) = __$BackupV2CopyWithImpl; @override @useResult $Res call({ int version, int date, Map spis, Map snippets, Map keys, Map container, Map history, Map settings }); } /// @nodoc class __$BackupV2CopyWithImpl<$Res> implements _$BackupV2CopyWith<$Res> { __$BackupV2CopyWithImpl(this._self, this._then); final _BackupV2 _self; final $Res Function(_BackupV2) _then; /// Create a copy of BackupV2 /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $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(_BackupV2( version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable as int,date: null == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as int,spis: null == spis ? _self._spis : spis // ignore: cast_nullable_to_non_nullable as Map,snippets: null == snippets ? _self._snippets : snippets // ignore: cast_nullable_to_non_nullable as Map,keys: null == keys ? _self._keys : keys // ignore: cast_nullable_to_non_nullable as Map,container: null == container ? _self._container : container // ignore: cast_nullable_to_non_nullable as Map,history: null == history ? _self._history : history // ignore: cast_nullable_to_non_nullable as Map,settings: null == settings ? _self._settings : settings // ignore: cast_nullable_to_non_nullable as Map, )); } } // dart format on