// 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 '../profile.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'); UserInfo _$UserInfoFromJson(Map json) { return _UserInfo.fromJson(json); } /// @nodoc mixin _$UserInfo { int get upload => throw _privateConstructorUsedError; int get download => throw _privateConstructorUsedError; int get total => throw _privateConstructorUsedError; int get expire => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $UserInfoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UserInfoCopyWith<$Res> { factory $UserInfoCopyWith(UserInfo value, $Res Function(UserInfo) then) = _$UserInfoCopyWithImpl<$Res, UserInfo>; @useResult $Res call({int upload, int download, int total, int expire}); } /// @nodoc class _$UserInfoCopyWithImpl<$Res, $Val extends UserInfo> implements $UserInfoCopyWith<$Res> { _$UserInfoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? upload = null, Object? download = null, Object? total = null, Object? expire = null, }) { return _then(_value.copyWith( upload: null == upload ? _value.upload : upload // ignore: cast_nullable_to_non_nullable as int, download: null == download ? _value.download : download // ignore: cast_nullable_to_non_nullable as int, total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable as int, expire: null == expire ? _value.expire : expire // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$UserInfoImplCopyWith<$Res> implements $UserInfoCopyWith<$Res> { factory _$$UserInfoImplCopyWith( _$UserInfoImpl value, $Res Function(_$UserInfoImpl) then) = __$$UserInfoImplCopyWithImpl<$Res>; @override @useResult $Res call({int upload, int download, int total, int expire}); } /// @nodoc class __$$UserInfoImplCopyWithImpl<$Res> extends _$UserInfoCopyWithImpl<$Res, _$UserInfoImpl> implements _$$UserInfoImplCopyWith<$Res> { __$$UserInfoImplCopyWithImpl( _$UserInfoImpl _value, $Res Function(_$UserInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? upload = null, Object? download = null, Object? total = null, Object? expire = null, }) { return _then(_$UserInfoImpl( upload: null == upload ? _value.upload : upload // ignore: cast_nullable_to_non_nullable as int, download: null == download ? _value.download : download // ignore: cast_nullable_to_non_nullable as int, total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable as int, expire: null == expire ? _value.expire : expire // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$UserInfoImpl implements _UserInfo { const _$UserInfoImpl( {this.upload = 0, this.download = 0, this.total = 0, this.expire = 0}); factory _$UserInfoImpl.fromJson(Map json) => _$$UserInfoImplFromJson(json); @override @JsonKey() final int upload; @override @JsonKey() final int download; @override @JsonKey() final int total; @override @JsonKey() final int expire; @override String toString() { return 'UserInfo(upload: $upload, download: $download, total: $total, expire: $expire)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserInfoImpl && (identical(other.upload, upload) || other.upload == upload) && (identical(other.download, download) || other.download == download) && (identical(other.total, total) || other.total == total) && (identical(other.expire, expire) || other.expire == expire)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, upload, download, total, expire); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$UserInfoImplCopyWith<_$UserInfoImpl> get copyWith => __$$UserInfoImplCopyWithImpl<_$UserInfoImpl>(this, _$identity); @override Map toJson() { return _$$UserInfoImplToJson( this, ); } } abstract class _UserInfo implements UserInfo { const factory _UserInfo( {final int upload, final int download, final int total, final int expire}) = _$UserInfoImpl; factory _UserInfo.fromJson(Map json) = _$UserInfoImpl.fromJson; @override int get upload; @override int get download; @override int get total; @override int get expire; @override @JsonKey(ignore: true) _$$UserInfoImplCopyWith<_$UserInfoImpl> get copyWith => throw _privateConstructorUsedError; } Profile _$ProfileFromJson(Map json) { return _Profile.fromJson(json); } /// @nodoc mixin _$Profile { String get id => throw _privateConstructorUsedError; String? get label => throw _privateConstructorUsedError; String? get currentGroupName => throw _privateConstructorUsedError; String get url => throw _privateConstructorUsedError; DateTime? get lastUpdateDate => throw _privateConstructorUsedError; Duration get autoUpdateDuration => throw _privateConstructorUsedError; UserInfo? get userInfo => throw _privateConstructorUsedError; bool get autoUpdate => throw _privateConstructorUsedError; Map get selectedMap => throw _privateConstructorUsedError; Set get unfoldSet => throw _privateConstructorUsedError; @JsonKey(includeToJson: false, includeFromJson: false) bool get isUpdating => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $ProfileCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProfileCopyWith<$Res> { factory $ProfileCopyWith(Profile value, $Res Function(Profile) then) = _$ProfileCopyWithImpl<$Res, Profile>; @useResult $Res call( {String id, String? label, String? currentGroupName, String url, DateTime? lastUpdateDate, Duration autoUpdateDuration, UserInfo? userInfo, bool autoUpdate, Map selectedMap, Set unfoldSet, @JsonKey(includeToJson: false, includeFromJson: false) bool isUpdating}); $UserInfoCopyWith<$Res>? get userInfo; } /// @nodoc class _$ProfileCopyWithImpl<$Res, $Val extends Profile> implements $ProfileCopyWith<$Res> { _$ProfileCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? label = freezed, Object? currentGroupName = freezed, Object? url = null, Object? lastUpdateDate = freezed, Object? autoUpdateDuration = null, Object? userInfo = freezed, Object? autoUpdate = null, Object? selectedMap = null, Object? unfoldSet = null, Object? isUpdating = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, label: freezed == label ? _value.label : label // ignore: cast_nullable_to_non_nullable as String?, currentGroupName: freezed == currentGroupName ? _value.currentGroupName : currentGroupName // ignore: cast_nullable_to_non_nullable as String?, url: null == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String, lastUpdateDate: freezed == lastUpdateDate ? _value.lastUpdateDate : lastUpdateDate // ignore: cast_nullable_to_non_nullable as DateTime?, autoUpdateDuration: null == autoUpdateDuration ? _value.autoUpdateDuration : autoUpdateDuration // ignore: cast_nullable_to_non_nullable as Duration, userInfo: freezed == userInfo ? _value.userInfo : userInfo // ignore: cast_nullable_to_non_nullable as UserInfo?, autoUpdate: null == autoUpdate ? _value.autoUpdate : autoUpdate // ignore: cast_nullable_to_non_nullable as bool, selectedMap: null == selectedMap ? _value.selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map, unfoldSet: null == unfoldSet ? _value.unfoldSet : unfoldSet // ignore: cast_nullable_to_non_nullable as Set, isUpdating: null == isUpdating ? _value.isUpdating : isUpdating // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } @override @pragma('vm:prefer-inline') $UserInfoCopyWith<$Res>? get userInfo { if (_value.userInfo == null) { return null; } return $UserInfoCopyWith<$Res>(_value.userInfo!, (value) { return _then(_value.copyWith(userInfo: value) as $Val); }); } } /// @nodoc abstract class _$$ProfileImplCopyWith<$Res> implements $ProfileCopyWith<$Res> { factory _$$ProfileImplCopyWith( _$ProfileImpl value, $Res Function(_$ProfileImpl) then) = __$$ProfileImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, String? label, String? currentGroupName, String url, DateTime? lastUpdateDate, Duration autoUpdateDuration, UserInfo? userInfo, bool autoUpdate, Map selectedMap, Set unfoldSet, @JsonKey(includeToJson: false, includeFromJson: false) bool isUpdating}); @override $UserInfoCopyWith<$Res>? get userInfo; } /// @nodoc class __$$ProfileImplCopyWithImpl<$Res> extends _$ProfileCopyWithImpl<$Res, _$ProfileImpl> implements _$$ProfileImplCopyWith<$Res> { __$$ProfileImplCopyWithImpl( _$ProfileImpl _value, $Res Function(_$ProfileImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? label = freezed, Object? currentGroupName = freezed, Object? url = null, Object? lastUpdateDate = freezed, Object? autoUpdateDuration = null, Object? userInfo = freezed, Object? autoUpdate = null, Object? selectedMap = null, Object? unfoldSet = null, Object? isUpdating = null, }) { return _then(_$ProfileImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, label: freezed == label ? _value.label : label // ignore: cast_nullable_to_non_nullable as String?, currentGroupName: freezed == currentGroupName ? _value.currentGroupName : currentGroupName // ignore: cast_nullable_to_non_nullable as String?, url: null == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String, lastUpdateDate: freezed == lastUpdateDate ? _value.lastUpdateDate : lastUpdateDate // ignore: cast_nullable_to_non_nullable as DateTime?, autoUpdateDuration: null == autoUpdateDuration ? _value.autoUpdateDuration : autoUpdateDuration // ignore: cast_nullable_to_non_nullable as Duration, userInfo: freezed == userInfo ? _value.userInfo : userInfo // ignore: cast_nullable_to_non_nullable as UserInfo?, autoUpdate: null == autoUpdate ? _value.autoUpdate : autoUpdate // ignore: cast_nullable_to_non_nullable as bool, selectedMap: null == selectedMap ? _value._selectedMap : selectedMap // ignore: cast_nullable_to_non_nullable as Map, unfoldSet: null == unfoldSet ? _value._unfoldSet : unfoldSet // ignore: cast_nullable_to_non_nullable as Set, isUpdating: null == isUpdating ? _value.isUpdating : isUpdating // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$ProfileImpl implements _Profile { const _$ProfileImpl( {required this.id, this.label, this.currentGroupName, this.url = "", this.lastUpdateDate, required this.autoUpdateDuration, this.userInfo, this.autoUpdate = true, final Map selectedMap = const {}, final Set unfoldSet = const {}, @JsonKey(includeToJson: false, includeFromJson: false) this.isUpdating = false}) : _selectedMap = selectedMap, _unfoldSet = unfoldSet; factory _$ProfileImpl.fromJson(Map json) => _$$ProfileImplFromJson(json); @override final String id; @override final String? label; @override final String? currentGroupName; @override @JsonKey() final String url; @override final DateTime? lastUpdateDate; @override final Duration autoUpdateDuration; @override final UserInfo? userInfo; @override @JsonKey() final bool autoUpdate; final Map _selectedMap; @override @JsonKey() Map get selectedMap { if (_selectedMap is EqualUnmodifiableMapView) return _selectedMap; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_selectedMap); } final Set _unfoldSet; @override @JsonKey() Set get unfoldSet { if (_unfoldSet is EqualUnmodifiableSetView) return _unfoldSet; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(_unfoldSet); } @override @JsonKey(includeToJson: false, includeFromJson: false) final bool isUpdating; @override String toString() { return 'Profile(id: $id, label: $label, currentGroupName: $currentGroupName, url: $url, lastUpdateDate: $lastUpdateDate, autoUpdateDuration: $autoUpdateDuration, userInfo: $userInfo, autoUpdate: $autoUpdate, selectedMap: $selectedMap, unfoldSet: $unfoldSet, isUpdating: $isUpdating)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProfileImpl && (identical(other.id, id) || other.id == id) && (identical(other.label, label) || other.label == label) && (identical(other.currentGroupName, currentGroupName) || other.currentGroupName == currentGroupName) && (identical(other.url, url) || other.url == url) && (identical(other.lastUpdateDate, lastUpdateDate) || other.lastUpdateDate == lastUpdateDate) && (identical(other.autoUpdateDuration, autoUpdateDuration) || other.autoUpdateDuration == autoUpdateDuration) && (identical(other.userInfo, userInfo) || other.userInfo == userInfo) && (identical(other.autoUpdate, autoUpdate) || other.autoUpdate == autoUpdate) && const DeepCollectionEquality() .equals(other._selectedMap, _selectedMap) && const DeepCollectionEquality() .equals(other._unfoldSet, _unfoldSet) && (identical(other.isUpdating, isUpdating) || other.isUpdating == isUpdating)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, id, label, currentGroupName, url, lastUpdateDate, autoUpdateDuration, userInfo, autoUpdate, const DeepCollectionEquality().hash(_selectedMap), const DeepCollectionEquality().hash(_unfoldSet), isUpdating); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$ProfileImplCopyWith<_$ProfileImpl> get copyWith => __$$ProfileImplCopyWithImpl<_$ProfileImpl>(this, _$identity); @override Map toJson() { return _$$ProfileImplToJson( this, ); } } abstract class _Profile implements Profile { const factory _Profile( {required final String id, final String? label, final String? currentGroupName, final String url, final DateTime? lastUpdateDate, required final Duration autoUpdateDuration, final UserInfo? userInfo, final bool autoUpdate, final Map selectedMap, final Set unfoldSet, @JsonKey(includeToJson: false, includeFromJson: false) final bool isUpdating}) = _$ProfileImpl; factory _Profile.fromJson(Map json) = _$ProfileImpl.fromJson; @override String get id; @override String? get label; @override String? get currentGroupName; @override String get url; @override DateTime? get lastUpdateDate; @override Duration get autoUpdateDuration; @override UserInfo? get userInfo; @override bool get autoUpdate; @override Map get selectedMap; @override Set get unfoldSet; @override @JsonKey(includeToJson: false, includeFromJson: false) bool get isUpdating; @override @JsonKey(ignore: true) _$$ProfileImplCopyWith<_$ProfileImpl> get copyWith => throw _privateConstructorUsedError; }