2024-06-19 13:13:31 +08:00
// 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 > ( 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. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models ' ) ;
2024-11-09 20:17:57 +08:00
SubscriptionInfo _ $SubscriptionInfoFromJson ( Map < String , dynamic > json ) {
return _SubscriptionInfo . fromJson ( json ) ;
2024-06-19 13:13:31 +08:00
}
/// @nodoc
2024-11-09 20:17:57 +08:00
mixin _ $SubscriptionInfo {
2024-06-19 13:13:31 +08:00
int get upload = > throw _privateConstructorUsedError ;
int get download = > throw _privateConstructorUsedError ;
int get total = > throw _privateConstructorUsedError ;
int get expire = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Serializes this SubscriptionInfo to a JSON map.
2024-06-19 13:13:31 +08:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of SubscriptionInfo
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SubscriptionInfoCopyWith < SubscriptionInfo > get copyWith = >
2024-06-19 13:13:31 +08:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2024-11-09 20:17:57 +08:00
abstract class $SubscriptionInfoCopyWith < $Res > {
factory $SubscriptionInfoCopyWith (
SubscriptionInfo value , $Res Function ( SubscriptionInfo ) then ) =
_ $SubscriptionInfoCopyWithImpl < $Res , SubscriptionInfo > ;
2024-06-19 13:13:31 +08:00
@ useResult
$Res call ( { int upload , int download , int total , int expire } ) ;
}
/// @nodoc
2024-11-09 20:17:57 +08:00
class _ $SubscriptionInfoCopyWithImpl < $Res , $Val extends SubscriptionInfo >
implements $SubscriptionInfoCopyWith < $Res > {
_ $SubscriptionInfoCopyWithImpl ( this . _value , this . _then ) ;
2024-06-19 13:13:31 +08:00
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-11-09 20:17:57 +08:00
/// Create a copy of SubscriptionInfo
/// with the given fields replaced by the non-null parameter values.
2024-06-19 13:13:31 +08:00
@ 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
2024-11-09 20:17:57 +08:00
abstract class _ $ $SubscriptionInfoImplCopyWith < $Res >
implements $SubscriptionInfoCopyWith < $Res > {
factory _ $ $SubscriptionInfoImplCopyWith ( _ $SubscriptionInfoImpl value ,
$Res Function ( _ $SubscriptionInfoImpl ) then ) =
__ $ $SubscriptionInfoImplCopyWithImpl < $Res > ;
2024-06-19 13:13:31 +08:00
@ override
@ useResult
$Res call ( { int upload , int download , int total , int expire } ) ;
}
/// @nodoc
2024-11-09 20:17:57 +08:00
class __ $ $SubscriptionInfoImplCopyWithImpl < $Res >
extends _ $SubscriptionInfoCopyWithImpl < $Res , _ $SubscriptionInfoImpl >
implements _ $ $SubscriptionInfoImplCopyWith < $Res > {
__ $ $SubscriptionInfoImplCopyWithImpl ( _ $SubscriptionInfoImpl _value ,
$Res Function ( _ $SubscriptionInfoImpl ) _then )
2024-06-19 13:13:31 +08:00
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of SubscriptionInfo
/// with the given fields replaced by the non-null parameter values.
2024-06-19 13:13:31 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? upload = null ,
Object ? download = null ,
Object ? total = null ,
Object ? expire = null ,
} ) {
2024-11-09 20:17:57 +08:00
return _then ( _ $SubscriptionInfoImpl (
2024-06-19 13:13:31 +08:00
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 ( )
2024-11-09 20:17:57 +08:00
class _ $SubscriptionInfoImpl implements _SubscriptionInfo {
const _ $SubscriptionInfoImpl (
2024-06-19 13:13:31 +08:00
{ this . upload = 0 , this . download = 0 , this . total = 0 , this . expire = 0 } ) ;
2024-11-09 20:17:57 +08:00
factory _ $SubscriptionInfoImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SubscriptionInfoImplFromJson ( json ) ;
2024-06-19 13:13:31 +08:00
@ override
@ JsonKey ( )
final int upload ;
@ override
@ JsonKey ( )
final int download ;
@ override
@ JsonKey ( )
final int total ;
@ override
@ JsonKey ( )
final int expire ;
@ override
String toString ( ) {
2024-11-09 20:17:57 +08:00
return ' SubscriptionInfo(upload: $ upload , download: $ download , total: $ total , expire: $ expire ) ' ;
2024-06-19 13:13:31 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-11-09 20:17:57 +08:00
other is _ $SubscriptionInfoImpl & &
2024-06-19 13:13:31 +08:00
( 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 ) ) ;
}
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-19 13:13:31 +08:00
@ override
int get hashCode = > Object . hash ( runtimeType , upload , download , total , expire ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of SubscriptionInfo
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-19 13:13:31 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-11-09 20:17:57 +08:00
_ $ $SubscriptionInfoImplCopyWith < _ $SubscriptionInfoImpl > get copyWith = >
__ $ $SubscriptionInfoImplCopyWithImpl < _ $SubscriptionInfoImpl > (
this , _ $identity ) ;
2024-06-19 13:13:31 +08:00
@ override
Map < String , dynamic > toJson ( ) {
2024-11-09 20:17:57 +08:00
return _ $ $SubscriptionInfoImplToJson (
2024-06-19 13:13:31 +08:00
this ,
) ;
}
}
2024-11-09 20:17:57 +08:00
abstract class _SubscriptionInfo implements SubscriptionInfo {
const factory _SubscriptionInfo (
2024-06-19 13:13:31 +08:00
{ final int upload ,
final int download ,
final int total ,
2024-11-09 20:17:57 +08:00
final int expire } ) = _ $SubscriptionInfoImpl ;
2024-06-19 13:13:31 +08:00
2024-11-09 20:17:57 +08:00
factory _SubscriptionInfo . fromJson ( Map < String , dynamic > json ) =
_ $SubscriptionInfoImpl . fromJson ;
2024-06-19 13:13:31 +08:00
@ override
int get upload ;
@ override
int get download ;
@ override
int get total ;
@ override
int get expire ;
2024-11-09 20:17:57 +08:00
/// Create a copy of SubscriptionInfo
/// with the given fields replaced by the non-null parameter values.
2024-06-19 13:13:31 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $SubscriptionInfoImplCopyWith < _ $SubscriptionInfoImpl > get copyWith = >
2024-06-19 13:13:31 +08:00
throw _privateConstructorUsedError ;
}
Profile _ $ProfileFromJson ( Map < String , dynamic > 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 ;
2024-11-09 20:17:57 +08:00
SubscriptionInfo ? get subscriptionInfo = > throw _privateConstructorUsedError ;
2024-06-19 13:13:31 +08:00
bool get autoUpdate = > throw _privateConstructorUsedError ;
Map < String , String > get selectedMap = > throw _privateConstructorUsedError ;
2024-06-23 00:26:24 +08:00
Set < String > get unfoldSet = > throw _privateConstructorUsedError ;
2025-03-12 17:15:31 +08:00
OverrideData get overrideData = > throw _privateConstructorUsedError ;
2024-08-04 08:21:14 +08:00
@ JsonKey ( includeToJson: false , includeFromJson: false )
bool get isUpdating = > throw _privateConstructorUsedError ;
2024-06-19 13:13:31 +08:00
2024-11-09 20:17:57 +08:00
/// Serializes this Profile to a JSON map.
2024-06-19 13:13:31 +08:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
2024-11-09 20:17:57 +08:00
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-19 13:13:31 +08:00
$ProfileCopyWith < Profile > 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 ,
2024-11-09 20:17:57 +08:00
SubscriptionInfo ? subscriptionInfo ,
2024-06-19 13:13:31 +08:00
bool autoUpdate ,
2024-06-23 00:26:24 +08:00
Map < String , String > selectedMap ,
2024-08-04 08:21:14 +08:00
Set < String > unfoldSet ,
2025-03-12 17:15:31 +08:00
OverrideData overrideData ,
2024-08-04 08:21:14 +08:00
@ JsonKey ( includeToJson: false , includeFromJson: false ) bool isUpdating } ) ;
2024-06-19 13:13:31 +08:00
2024-11-09 20:17:57 +08:00
$SubscriptionInfoCopyWith < $Res > ? get subscriptionInfo ;
2025-03-12 17:15:31 +08:00
$OverrideDataCopyWith < $Res > get overrideData ;
2024-06-19 13:13:31 +08:00
}
/// @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 ;
2024-11-09 20:17:57 +08:00
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
2024-06-19 13:13:31 +08:00
@ 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 ,
2024-11-09 20:17:57 +08:00
Object ? subscriptionInfo = freezed ,
2024-06-19 13:13:31 +08:00
Object ? autoUpdate = null ,
Object ? selectedMap = null ,
2024-06-23 00:26:24 +08:00
Object ? unfoldSet = null ,
2025-03-12 17:15:31 +08:00
Object ? overrideData = null ,
2024-08-04 08:21:14 +08:00
Object ? isUpdating = null ,
2024-06-19 13:13:31 +08:00
} ) {
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 ,
2024-11-09 20:17:57 +08:00
subscriptionInfo: freezed = = subscriptionInfo
? _value . subscriptionInfo
: subscriptionInfo // ignore: cast_nullable_to_non_nullable
as SubscriptionInfo ? ,
2024-06-19 13:13:31 +08:00
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 < String , String > ,
2024-06-23 00:26:24 +08:00
unfoldSet: null = = unfoldSet
? _value . unfoldSet
: unfoldSet // ignore: cast_nullable_to_non_nullable
as Set < String > ,
2025-03-12 17:15:31 +08:00
overrideData: null = = overrideData
? _value . overrideData
: overrideData // ignore: cast_nullable_to_non_nullable
as OverrideData ,
2024-08-04 08:21:14 +08:00
isUpdating: null = = isUpdating
? _value . isUpdating
: isUpdating // ignore: cast_nullable_to_non_nullable
as bool ,
2024-06-19 13:13:31 +08:00
) as $Val ) ;
}
2024-11-09 20:17:57 +08:00
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
2024-06-19 13:13:31 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-11-09 20:17:57 +08:00
$SubscriptionInfoCopyWith < $Res > ? get subscriptionInfo {
if ( _value . subscriptionInfo = = null ) {
2024-06-19 13:13:31 +08:00
return null ;
}
2024-11-09 20:17:57 +08:00
return $SubscriptionInfoCopyWith < $Res > ( _value . subscriptionInfo ! , ( value ) {
return _then ( _value . copyWith ( subscriptionInfo: value ) as $Val ) ;
2024-06-19 13:13:31 +08:00
} ) ;
}
2025-03-12 17:15:31 +08:00
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$OverrideDataCopyWith < $Res > get overrideData {
return $OverrideDataCopyWith < $Res > ( _value . overrideData , ( value ) {
return _then ( _value . copyWith ( overrideData: value ) as $Val ) ;
} ) ;
}
2024-06-19 13:13:31 +08:00
}
/// @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 ,
2024-11-09 20:17:57 +08:00
SubscriptionInfo ? subscriptionInfo ,
2024-06-19 13:13:31 +08:00
bool autoUpdate ,
2024-06-23 00:26:24 +08:00
Map < String , String > selectedMap ,
2024-08-04 08:21:14 +08:00
Set < String > unfoldSet ,
2025-03-12 17:15:31 +08:00
OverrideData overrideData ,
2024-08-04 08:21:14 +08:00
@ JsonKey ( includeToJson: false , includeFromJson: false ) bool isUpdating } ) ;
2024-06-19 13:13:31 +08:00
@ override
2024-11-09 20:17:57 +08:00
$SubscriptionInfoCopyWith < $Res > ? get subscriptionInfo ;
2025-03-12 17:15:31 +08:00
@ override
$OverrideDataCopyWith < $Res > get overrideData ;
2024-06-19 13:13:31 +08:00
}
/// @nodoc
class __ $ $ProfileImplCopyWithImpl < $Res >
extends _ $ProfileCopyWithImpl < $Res , _ $ProfileImpl >
implements _ $ $ProfileImplCopyWith < $Res > {
__ $ $ProfileImplCopyWithImpl (
_ $ProfileImpl _value , $Res Function ( _ $ProfileImpl ) _then )
: super ( _value , _then ) ;
2024-11-09 20:17:57 +08:00
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
2024-06-19 13:13:31 +08:00
@ 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 ,
2024-11-09 20:17:57 +08:00
Object ? subscriptionInfo = freezed ,
2024-06-19 13:13:31 +08:00
Object ? autoUpdate = null ,
Object ? selectedMap = null ,
2024-06-23 00:26:24 +08:00
Object ? unfoldSet = null ,
2025-03-12 17:15:31 +08:00
Object ? overrideData = null ,
2024-08-04 08:21:14 +08:00
Object ? isUpdating = null ,
2024-06-19 13:13:31 +08:00
} ) {
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 ,
2024-11-09 20:17:57 +08:00
subscriptionInfo: freezed = = subscriptionInfo
? _value . subscriptionInfo
: subscriptionInfo // ignore: cast_nullable_to_non_nullable
as SubscriptionInfo ? ,
2024-06-19 13:13:31 +08:00
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 < String , String > ,
2024-06-23 00:26:24 +08:00
unfoldSet: null = = unfoldSet
? _value . _unfoldSet
: unfoldSet // ignore: cast_nullable_to_non_nullable
as Set < String > ,
2025-03-12 17:15:31 +08:00
overrideData: null = = overrideData
? _value . overrideData
: overrideData // ignore: cast_nullable_to_non_nullable
as OverrideData ,
2024-08-04 08:21:14 +08:00
isUpdating: null = = isUpdating
? _value . isUpdating
: isUpdating // ignore: cast_nullable_to_non_nullable
as bool ,
2024-06-19 13:13:31 +08:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $ProfileImpl implements _Profile {
const _ $ProfileImpl (
{ required this . id ,
this . label ,
this . currentGroupName ,
2025-06-07 01:48:34 +08:00
this . url = ' ' ,
2024-06-19 13:13:31 +08:00
this . lastUpdateDate ,
required this . autoUpdateDuration ,
2024-11-09 20:17:57 +08:00
this . subscriptionInfo ,
2024-06-19 13:13:31 +08:00
this . autoUpdate = true ,
2024-06-23 00:26:24 +08:00
final Map < String , String > selectedMap = const { } ,
2024-08-04 08:21:14 +08:00
final Set < String > unfoldSet = const { } ,
2025-03-12 17:15:31 +08:00
this . overrideData = const OverrideData ( ) ,
2024-08-04 08:21:14 +08:00
@ JsonKey ( includeToJson: false , includeFromJson: false )
this . isUpdating = false } )
2024-06-23 00:26:24 +08:00
: _selectedMap = selectedMap ,
_unfoldSet = unfoldSet ;
2024-06-19 13:13:31 +08:00
factory _ $ProfileImpl . fromJson ( Map < String , dynamic > 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
2024-11-09 20:17:57 +08:00
final SubscriptionInfo ? subscriptionInfo ;
2024-06-19 13:13:31 +08:00
@ override
@ JsonKey ( )
final bool autoUpdate ;
final Map < String , String > _selectedMap ;
@ override
@ JsonKey ( )
Map < String , String > get selectedMap {
if ( _selectedMap is EqualUnmodifiableMapView ) return _selectedMap ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _selectedMap ) ;
}
2024-06-23 00:26:24 +08:00
final Set < String > _unfoldSet ;
@ override
@ JsonKey ( )
Set < String > get unfoldSet {
if ( _unfoldSet is EqualUnmodifiableSetView ) return _unfoldSet ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableSetView ( _unfoldSet ) ;
}
2025-03-12 17:15:31 +08:00
@ override
@ JsonKey ( )
final OverrideData overrideData ;
2024-08-04 08:21:14 +08:00
@ override
@ JsonKey ( includeToJson: false , includeFromJson: false )
final bool isUpdating ;
2024-06-19 13:13:31 +08:00
@ override
String toString ( ) {
2025-03-12 17:15:31 +08:00
return ' Profile(id: $ id , label: $ label , currentGroupName: $ currentGroupName , url: $ url , lastUpdateDate: $ lastUpdateDate , autoUpdateDuration: $ autoUpdateDuration , subscriptionInfo: $ subscriptionInfo , autoUpdate: $ autoUpdate , selectedMap: $ selectedMap , unfoldSet: $ unfoldSet , overrideData: $ overrideData , isUpdating: $ isUpdating ) ' ;
2024-06-19 13:13:31 +08:00
}
@ 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 ) & &
2024-11-09 20:17:57 +08:00
( identical ( other . subscriptionInfo , subscriptionInfo ) | |
other . subscriptionInfo = = subscriptionInfo ) & &
2024-06-19 13:13:31 +08:00
( identical ( other . autoUpdate , autoUpdate ) | |
other . autoUpdate = = autoUpdate ) & &
const DeepCollectionEquality ( )
2024-06-23 00:26:24 +08:00
. equals ( other . _selectedMap , _selectedMap ) & &
const DeepCollectionEquality ( )
2024-08-04 08:21:14 +08:00
. equals ( other . _unfoldSet , _unfoldSet ) & &
2025-03-12 17:15:31 +08:00
( identical ( other . overrideData , overrideData ) | |
other . overrideData = = overrideData ) & &
2024-08-04 08:21:14 +08:00
( identical ( other . isUpdating , isUpdating ) | |
other . isUpdating = = isUpdating ) ) ;
2024-06-19 13:13:31 +08:00
}
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-19 13:13:31 +08:00
@ override
int get hashCode = > Object . hash (
runtimeType ,
id ,
label ,
currentGroupName ,
url ,
lastUpdateDate ,
autoUpdateDuration ,
2024-11-09 20:17:57 +08:00
subscriptionInfo ,
2024-06-19 13:13:31 +08:00
autoUpdate ,
2024-06-23 00:26:24 +08:00
const DeepCollectionEquality ( ) . hash ( _selectedMap ) ,
2024-08-04 08:21:14 +08:00
const DeepCollectionEquality ( ) . hash ( _unfoldSet ) ,
2025-03-12 17:15:31 +08:00
overrideData ,
2024-08-04 08:21:14 +08:00
isUpdating ) ;
2024-06-19 13:13:31 +08:00
2024-11-09 20:17:57 +08:00
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-19 13:13:31 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $ProfileImplCopyWith < _ $ProfileImpl > get copyWith = >
__ $ $ProfileImplCopyWithImpl < _ $ProfileImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > 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 ,
2024-11-09 20:17:57 +08:00
final SubscriptionInfo ? subscriptionInfo ,
2024-06-19 13:13:31 +08:00
final bool autoUpdate ,
2024-06-23 00:26:24 +08:00
final Map < String , String > selectedMap ,
2024-08-04 08:21:14 +08:00
final Set < String > unfoldSet ,
2025-03-12 17:15:31 +08:00
final OverrideData overrideData ,
2024-08-04 08:21:14 +08:00
@ JsonKey ( includeToJson: false , includeFromJson: false )
final bool isUpdating } ) = _ $ProfileImpl ;
2024-06-19 13:13:31 +08:00
factory _Profile . fromJson ( Map < String , dynamic > 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
2024-11-09 20:17:57 +08:00
SubscriptionInfo ? get subscriptionInfo ;
2024-06-19 13:13:31 +08:00
@ override
bool get autoUpdate ;
@ override
Map < String , String > get selectedMap ;
@ override
2024-06-23 00:26:24 +08:00
Set < String > get unfoldSet ;
@ override
2025-03-12 17:15:31 +08:00
OverrideData get overrideData ;
@ override
2024-08-04 08:21:14 +08:00
@ JsonKey ( includeToJson: false , includeFromJson: false )
bool get isUpdating ;
2024-11-09 20:17:57 +08:00
/// Create a copy of Profile
/// with the given fields replaced by the non-null parameter values.
2024-08-04 08:21:14 +08:00
@ override
2024-11-09 20:17:57 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-06-19 13:13:31 +08:00
_ $ $ProfileImplCopyWith < _ $ProfileImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2025-03-12 17:15:31 +08:00
OverrideData _ $OverrideDataFromJson ( Map < String , dynamic > json ) {
return _OverrideData . fromJson ( json ) ;
}
/// @nodoc
mixin _ $OverrideData {
bool get enable = > throw _privateConstructorUsedError ;
OverrideRule get rule = > throw _privateConstructorUsedError ;
/// Serializes this OverrideData to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of OverrideData
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$OverrideDataCopyWith < OverrideData > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OverrideDataCopyWith < $Res > {
factory $OverrideDataCopyWith (
OverrideData value , $Res Function ( OverrideData ) then ) =
_ $OverrideDataCopyWithImpl < $Res , OverrideData > ;
@ useResult
$Res call ( { bool enable , OverrideRule rule } ) ;
$OverrideRuleCopyWith < $Res > get rule ;
}
/// @nodoc
class _ $OverrideDataCopyWithImpl < $Res , $Val extends OverrideData >
implements $OverrideDataCopyWith < $Res > {
_ $OverrideDataCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of OverrideData
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? enable = null ,
Object ? rule = null ,
} ) {
return _then ( _value . copyWith (
enable: null = = enable
? _value . enable
: enable // ignore: cast_nullable_to_non_nullable
as bool ,
rule: null = = rule
? _value . rule
: rule // ignore: cast_nullable_to_non_nullable
as OverrideRule ,
) as $Val ) ;
}
/// Create a copy of OverrideData
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$OverrideRuleCopyWith < $Res > get rule {
return $OverrideRuleCopyWith < $Res > ( _value . rule , ( value ) {
return _then ( _value . copyWith ( rule: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $OverrideDataImplCopyWith < $Res >
implements $OverrideDataCopyWith < $Res > {
factory _ $ $OverrideDataImplCopyWith (
_ $OverrideDataImpl value , $Res Function ( _ $OverrideDataImpl ) then ) =
__ $ $OverrideDataImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( { bool enable , OverrideRule rule } ) ;
@ override
$OverrideRuleCopyWith < $Res > get rule ;
}
/// @nodoc
class __ $ $OverrideDataImplCopyWithImpl < $Res >
extends _ $OverrideDataCopyWithImpl < $Res , _ $OverrideDataImpl >
implements _ $ $OverrideDataImplCopyWith < $Res > {
__ $ $OverrideDataImplCopyWithImpl (
_ $OverrideDataImpl _value , $Res Function ( _ $OverrideDataImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of OverrideData
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? enable = null ,
Object ? rule = null ,
} ) {
return _then ( _ $OverrideDataImpl (
enable: null = = enable
? _value . enable
: enable // ignore: cast_nullable_to_non_nullable
as bool ,
rule: null = = rule
? _value . rule
: rule // ignore: cast_nullable_to_non_nullable
as OverrideRule ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $OverrideDataImpl implements _OverrideData {
const _ $OverrideDataImpl (
{ this . enable = false , this . rule = const OverrideRule ( ) } ) ;
factory _ $OverrideDataImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $OverrideDataImplFromJson ( json ) ;
@ override
@ JsonKey ( )
final bool enable ;
@ override
@ JsonKey ( )
final OverrideRule rule ;
@ override
String toString ( ) {
return ' OverrideData(enable: $ enable , rule: $ rule ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $OverrideDataImpl & &
( identical ( other . enable , enable ) | | other . enable = = enable ) & &
( identical ( other . rule , rule ) | | other . rule = = rule ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash ( runtimeType , enable , rule ) ;
/// Create a copy of OverrideData
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $OverrideDataImplCopyWith < _ $OverrideDataImpl > get copyWith = >
__ $ $OverrideDataImplCopyWithImpl < _ $OverrideDataImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $OverrideDataImplToJson (
this ,
) ;
}
}
abstract class _OverrideData implements OverrideData {
const factory _OverrideData ( { final bool enable , final OverrideRule rule } ) =
_ $OverrideDataImpl ;
factory _OverrideData . fromJson ( Map < String , dynamic > json ) =
_ $OverrideDataImpl . fromJson ;
@ override
bool get enable ;
@ override
OverrideRule get rule ;
/// Create a copy of OverrideData
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $OverrideDataImplCopyWith < _ $OverrideDataImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
OverrideRule _ $OverrideRuleFromJson ( Map < String , dynamic > json ) {
return _OverrideRule . fromJson ( json ) ;
}
/// @nodoc
mixin _ $OverrideRule {
OverrideRuleType get type = > throw _privateConstructorUsedError ;
List < Rule > get overrideRules = > throw _privateConstructorUsedError ;
List < Rule > get addedRules = > throw _privateConstructorUsedError ;
/// Serializes this OverrideRule to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of OverrideRule
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$OverrideRuleCopyWith < OverrideRule > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OverrideRuleCopyWith < $Res > {
factory $OverrideRuleCopyWith (
OverrideRule value , $Res Function ( OverrideRule ) then ) =
_ $OverrideRuleCopyWithImpl < $Res , OverrideRule > ;
@ useResult
$Res call (
{ OverrideRuleType type , List < Rule > overrideRules , List < Rule > addedRules } ) ;
}
/// @nodoc
class _ $OverrideRuleCopyWithImpl < $Res , $Val extends OverrideRule >
implements $OverrideRuleCopyWith < $Res > {
_ $OverrideRuleCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of OverrideRule
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? type = null ,
Object ? overrideRules = null ,
Object ? addedRules = null ,
} ) {
return _then ( _value . copyWith (
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as OverrideRuleType ,
overrideRules: null = = overrideRules
? _value . overrideRules
: overrideRules // ignore: cast_nullable_to_non_nullable
as List < Rule > ,
addedRules: null = = addedRules
? _value . addedRules
: addedRules // ignore: cast_nullable_to_non_nullable
as List < Rule > ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $OverrideRuleImplCopyWith < $Res >
implements $OverrideRuleCopyWith < $Res > {
factory _ $ $OverrideRuleImplCopyWith (
_ $OverrideRuleImpl value , $Res Function ( _ $OverrideRuleImpl ) then ) =
__ $ $OverrideRuleImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ OverrideRuleType type , List < Rule > overrideRules , List < Rule > addedRules } ) ;
}
/// @nodoc
class __ $ $OverrideRuleImplCopyWithImpl < $Res >
extends _ $OverrideRuleCopyWithImpl < $Res , _ $OverrideRuleImpl >
implements _ $ $OverrideRuleImplCopyWith < $Res > {
__ $ $OverrideRuleImplCopyWithImpl (
_ $OverrideRuleImpl _value , $Res Function ( _ $OverrideRuleImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of OverrideRule
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? type = null ,
Object ? overrideRules = null ,
Object ? addedRules = null ,
} ) {
return _then ( _ $OverrideRuleImpl (
type: null = = type
? _value . type
: type // ignore: cast_nullable_to_non_nullable
as OverrideRuleType ,
overrideRules: null = = overrideRules
? _value . _overrideRules
: overrideRules // ignore: cast_nullable_to_non_nullable
as List < Rule > ,
addedRules: null = = addedRules
? _value . _addedRules
: addedRules // ignore: cast_nullable_to_non_nullable
as List < Rule > ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $OverrideRuleImpl implements _OverrideRule {
const _ $OverrideRuleImpl (
{ this . type = OverrideRuleType . added ,
final List < Rule > overrideRules = const [ ] ,
final List < Rule > addedRules = const [ ] } )
: _overrideRules = overrideRules ,
_addedRules = addedRules ;
factory _ $OverrideRuleImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $OverrideRuleImplFromJson ( json ) ;
@ override
@ JsonKey ( )
final OverrideRuleType type ;
final List < Rule > _overrideRules ;
@ override
@ JsonKey ( )
List < Rule > get overrideRules {
if ( _overrideRules is EqualUnmodifiableListView ) return _overrideRules ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _overrideRules ) ;
}
final List < Rule > _addedRules ;
@ override
@ JsonKey ( )
List < Rule > get addedRules {
if ( _addedRules is EqualUnmodifiableListView ) return _addedRules ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _addedRules ) ;
}
@ override
String toString ( ) {
return ' OverrideRule(type: $ type , overrideRules: $ overrideRules , addedRules: $ addedRules ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $OverrideRuleImpl & &
( identical ( other . type , type ) | | other . type = = type ) & &
const DeepCollectionEquality ( )
. equals ( other . _overrideRules , _overrideRules ) & &
const DeepCollectionEquality ( )
. equals ( other . _addedRules , _addedRules ) ) ;
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = > Object . hash (
runtimeType ,
type ,
const DeepCollectionEquality ( ) . hash ( _overrideRules ) ,
const DeepCollectionEquality ( ) . hash ( _addedRules ) ) ;
/// Create a copy of OverrideRule
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $OverrideRuleImplCopyWith < _ $OverrideRuleImpl > get copyWith = >
__ $ $OverrideRuleImplCopyWithImpl < _ $OverrideRuleImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $OverrideRuleImplToJson (
this ,
) ;
}
}
abstract class _OverrideRule implements OverrideRule {
const factory _OverrideRule (
{ final OverrideRuleType type ,
final List < Rule > overrideRules ,
final List < Rule > addedRules } ) = _ $OverrideRuleImpl ;
factory _OverrideRule . fromJson ( Map < String , dynamic > json ) =
_ $OverrideRuleImpl . fromJson ;
@ override
OverrideRuleType get type ;
@ override
List < Rule > get overrideRules ;
@ override
List < Rule > get addedRules ;
/// Create a copy of OverrideRule
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $OverrideRuleImplCopyWith < _ $OverrideRuleImpl > get copyWith = >
throw _privateConstructorUsedError ;
}