2023-07-07 19:33:28 -04: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 ' preferences.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
2024-02-11 23:18:20 -05:00
' 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 ' ) ;
2023-07-07 19:33:28 -04:00
LockPreference _ $LockPreferenceFromJson ( Map < String , dynamic > json ) {
return _LockPreference . fromJson ( json ) ;
}
/// @nodoc
mixin _ $LockPreference {
int get inactivityLockSecs = > throw _privateConstructorUsedError ;
bool get lockWhenSwitching = > throw _privateConstructorUsedError ;
bool get lockWithSystemLock = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$LockPreferenceCopyWith < LockPreference > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $LockPreferenceCopyWith < $Res > {
factory $LockPreferenceCopyWith (
LockPreference value , $Res Function ( LockPreference ) then ) =
_ $LockPreferenceCopyWithImpl < $Res , LockPreference > ;
@ useResult
$Res call (
{ int inactivityLockSecs ,
bool lockWhenSwitching ,
bool lockWithSystemLock } ) ;
}
/// @nodoc
class _ $LockPreferenceCopyWithImpl < $Res , $Val extends LockPreference >
implements $LockPreferenceCopyWith < $Res > {
_ $LockPreferenceCopyWithImpl ( 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 ? inactivityLockSecs = null ,
Object ? lockWhenSwitching = null ,
Object ? lockWithSystemLock = null ,
} ) {
return _then ( _value . copyWith (
inactivityLockSecs: null = = inactivityLockSecs
? _value . inactivityLockSecs
: inactivityLockSecs // ignore: cast_nullable_to_non_nullable
as int ,
lockWhenSwitching: null = = lockWhenSwitching
? _value . lockWhenSwitching
: lockWhenSwitching // ignore: cast_nullable_to_non_nullable
as bool ,
lockWithSystemLock: null = = lockWithSystemLock
? _value . lockWithSystemLock
: lockWithSystemLock // ignore: cast_nullable_to_non_nullable
as bool ,
) as $Val ) ;
}
}
/// @nodoc
2023-09-28 10:06:22 -04:00
abstract class _ $ $LockPreferenceImplCopyWith < $Res >
2023-07-07 19:33:28 -04:00
implements $LockPreferenceCopyWith < $Res > {
2023-09-28 10:06:22 -04:00
factory _ $ $LockPreferenceImplCopyWith ( _ $LockPreferenceImpl value ,
$Res Function ( _ $LockPreferenceImpl ) then ) =
__ $ $LockPreferenceImplCopyWithImpl < $Res > ;
2023-07-07 19:33:28 -04:00
@ override
@ useResult
$Res call (
{ int inactivityLockSecs ,
bool lockWhenSwitching ,
bool lockWithSystemLock } ) ;
}
/// @nodoc
2023-09-28 10:06:22 -04:00
class __ $ $LockPreferenceImplCopyWithImpl < $Res >
extends _ $LockPreferenceCopyWithImpl < $Res , _ $LockPreferenceImpl >
implements _ $ $LockPreferenceImplCopyWith < $Res > {
__ $ $LockPreferenceImplCopyWithImpl (
_ $LockPreferenceImpl _value , $Res Function ( _ $LockPreferenceImpl ) _then )
2023-07-07 19:33:28 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? inactivityLockSecs = null ,
Object ? lockWhenSwitching = null ,
Object ? lockWithSystemLock = null ,
} ) {
2023-09-28 10:06:22 -04:00
return _then ( _ $LockPreferenceImpl (
2023-07-07 19:33:28 -04:00
inactivityLockSecs: null = = inactivityLockSecs
? _value . inactivityLockSecs
: inactivityLockSecs // ignore: cast_nullable_to_non_nullable
as int ,
lockWhenSwitching: null = = lockWhenSwitching
? _value . lockWhenSwitching
: lockWhenSwitching // ignore: cast_nullable_to_non_nullable
as bool ,
lockWithSystemLock: null = = lockWithSystemLock
? _value . lockWithSystemLock
: lockWithSystemLock // ignore: cast_nullable_to_non_nullable
as bool ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-09-28 10:06:22 -04:00
class _ $LockPreferenceImpl implements _LockPreference {
const _ $LockPreferenceImpl (
2024-07-26 16:51:03 -04:00
{ this . inactivityLockSecs = 0 ,
this . lockWhenSwitching = false ,
this . lockWithSystemLock = false } ) ;
2023-07-07 19:33:28 -04:00
2023-09-28 10:06:22 -04:00
factory _ $LockPreferenceImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $LockPreferenceImplFromJson ( json ) ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
@ JsonKey ( )
2023-07-07 19:33:28 -04:00
final int inactivityLockSecs ;
@ override
2024-07-26 16:51:03 -04:00
@ JsonKey ( )
2023-07-07 19:33:28 -04:00
final bool lockWhenSwitching ;
@ override
2024-07-26 16:51:03 -04:00
@ JsonKey ( )
2023-07-07 19:33:28 -04:00
final bool lockWithSystemLock ;
@ override
String toString ( ) {
return ' LockPreference(inactivityLockSecs: $ inactivityLockSecs , lockWhenSwitching: $ lockWhenSwitching , lockWithSystemLock: $ lockWithSystemLock ) ' ;
}
@ override
2023-12-18 20:05:23 -05:00
bool operator = = ( Object other ) {
2023-07-07 19:33:28 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-09-28 10:06:22 -04:00
other is _ $LockPreferenceImpl & &
2023-07-07 19:33:28 -04:00
( identical ( other . inactivityLockSecs , inactivityLockSecs ) | |
other . inactivityLockSecs = = inactivityLockSecs ) & &
( identical ( other . lockWhenSwitching , lockWhenSwitching ) | |
other . lockWhenSwitching = = lockWhenSwitching ) & &
( identical ( other . lockWithSystemLock , lockWithSystemLock ) | |
other . lockWithSystemLock = = lockWithSystemLock ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash (
runtimeType , inactivityLockSecs , lockWhenSwitching , lockWithSystemLock ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-09-28 10:06:22 -04:00
_ $ $LockPreferenceImplCopyWith < _ $LockPreferenceImpl > get copyWith = >
__ $ $LockPreferenceImplCopyWithImpl < _ $LockPreferenceImpl > (
this , _ $identity ) ;
2023-07-07 19:33:28 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2023-09-28 10:06:22 -04:00
return _ $ $LockPreferenceImplToJson (
2023-07-07 19:33:28 -04:00
this ,
) ;
}
}
abstract class _LockPreference implements LockPreference {
const factory _LockPreference (
2024-07-26 16:51:03 -04:00
{ final int inactivityLockSecs ,
final bool lockWhenSwitching ,
final bool lockWithSystemLock } ) = _ $LockPreferenceImpl ;
2023-07-07 19:33:28 -04:00
factory _LockPreference . fromJson ( Map < String , dynamic > json ) =
2023-09-28 10:06:22 -04:00
_ $LockPreferenceImpl . fromJson ;
2023-07-07 19:33:28 -04:00
@ override
int get inactivityLockSecs ;
@ override
bool get lockWhenSwitching ;
@ override
bool get lockWithSystemLock ;
@ override
@ JsonKey ( ignore: true )
2023-09-28 10:06:22 -04:00
_ $ $LockPreferenceImplCopyWith < _ $LockPreferenceImpl > get copyWith = >
2023-07-07 19:33:28 -04:00
throw _privateConstructorUsedError ;
}
Preferences _ $PreferencesFromJson ( Map < String , dynamic > json ) {
return _Preferences . fromJson ( json ) ;
}
/// @nodoc
mixin _ $Preferences {
2024-07-26 16:51:03 -04:00
ThemePreferences get themePreference = > throw _privateConstructorUsedError ;
LanguagePreference get languagePreference = >
throw _privateConstructorUsedError ;
LockPreference get lockPreference = > throw _privateConstructorUsedError ;
NotificationsPreference get notificationsPreference = >
throw _privateConstructorUsedError ;
2023-07-07 19:33:28 -04:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PreferencesCopyWith < Preferences > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PreferencesCopyWith < $Res > {
factory $PreferencesCopyWith (
Preferences value , $Res Function ( Preferences ) then ) =
_ $PreferencesCopyWithImpl < $Res , Preferences > ;
@ useResult
$Res call (
2024-07-26 16:51:03 -04:00
{ ThemePreferences themePreference ,
LanguagePreference languagePreference ,
LockPreference lockPreference ,
NotificationsPreference notificationsPreference } ) ;
$ThemePreferencesCopyWith < $Res > get themePreference ;
$LockPreferenceCopyWith < $Res > get lockPreference ;
$NotificationsPreferenceCopyWith < $Res > get notificationsPreference ;
2023-07-07 19:33:28 -04:00
}
/// @nodoc
class _ $PreferencesCopyWithImpl < $Res , $Val extends Preferences >
implements $PreferencesCopyWith < $Res > {
_ $PreferencesCopyWithImpl ( 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 ( {
2024-07-26 16:51:03 -04:00
Object ? themePreference = null ,
Object ? languagePreference = null ,
Object ? lockPreference = null ,
Object ? notificationsPreference = null ,
2023-07-07 19:33:28 -04:00
} ) {
return _then ( _value . copyWith (
2024-07-26 16:51:03 -04:00
themePreference: null = = themePreference
? _value . themePreference
: themePreference // ignore: cast_nullable_to_non_nullable
2023-07-28 20:36:05 -04:00
as ThemePreferences ,
2024-07-26 16:51:03 -04:00
languagePreference: null = = languagePreference
? _value . languagePreference
: languagePreference // ignore: cast_nullable_to_non_nullable
2023-07-07 19:33:28 -04:00
as LanguagePreference ,
2024-07-26 16:51:03 -04:00
lockPreference: null = = lockPreference
? _value . lockPreference
: lockPreference // ignore: cast_nullable_to_non_nullable
2023-07-07 19:33:28 -04:00
as LockPreference ,
2024-07-26 16:51:03 -04:00
notificationsPreference: null = = notificationsPreference
? _value . notificationsPreference
: notificationsPreference // ignore: cast_nullable_to_non_nullable
as NotificationsPreference ,
2023-07-07 19:33:28 -04:00
) as $Val ) ;
}
2024-01-08 21:37:08 -05:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-07-26 16:51:03 -04:00
$ThemePreferencesCopyWith < $Res > get themePreference {
return $ThemePreferencesCopyWith < $Res > ( _value . themePreference , ( value ) {
return _then ( _value . copyWith ( themePreference: value ) as $Val ) ;
2024-01-08 21:37:08 -05:00
} ) ;
}
2023-07-07 19:33:28 -04:00
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-07-26 16:51:03 -04:00
$LockPreferenceCopyWith < $Res > get lockPreference {
return $LockPreferenceCopyWith < $Res > ( _value . lockPreference , ( value ) {
return _then ( _value . copyWith ( lockPreference: value ) as $Val ) ;
} ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$NotificationsPreferenceCopyWith < $Res > get notificationsPreference {
return $NotificationsPreferenceCopyWith < $Res > (
_value . notificationsPreference , ( value ) {
return _then ( _value . copyWith ( notificationsPreference: value ) as $Val ) ;
2023-07-07 19:33:28 -04:00
} ) ;
}
}
/// @nodoc
2023-09-28 10:06:22 -04:00
abstract class _ $ $PreferencesImplCopyWith < $Res >
2023-07-07 19:33:28 -04:00
implements $PreferencesCopyWith < $Res > {
2023-09-28 10:06:22 -04:00
factory _ $ $PreferencesImplCopyWith (
_ $PreferencesImpl value , $Res Function ( _ $PreferencesImpl ) then ) =
__ $ $PreferencesImplCopyWithImpl < $Res > ;
2023-07-07 19:33:28 -04:00
@ override
@ useResult
$Res call (
2024-07-26 16:51:03 -04:00
{ ThemePreferences themePreference ,
LanguagePreference languagePreference ,
LockPreference lockPreference ,
NotificationsPreference notificationsPreference } ) ;
2023-07-07 19:33:28 -04:00
2024-01-08 21:37:08 -05:00
@ override
2024-07-26 16:51:03 -04:00
$ThemePreferencesCopyWith < $Res > get themePreference ;
@ override
$LockPreferenceCopyWith < $Res > get lockPreference ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
$NotificationsPreferenceCopyWith < $Res > get notificationsPreference ;
2023-07-07 19:33:28 -04:00
}
/// @nodoc
2023-09-28 10:06:22 -04:00
class __ $ $PreferencesImplCopyWithImpl < $Res >
extends _ $PreferencesCopyWithImpl < $Res , _ $PreferencesImpl >
implements _ $ $PreferencesImplCopyWith < $Res > {
__ $ $PreferencesImplCopyWithImpl (
_ $PreferencesImpl _value , $Res Function ( _ $PreferencesImpl ) _then )
2023-07-07 19:33:28 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
2024-07-26 16:51:03 -04:00
Object ? themePreference = null ,
Object ? languagePreference = null ,
Object ? lockPreference = null ,
Object ? notificationsPreference = null ,
2023-07-07 19:33:28 -04:00
} ) {
2023-09-28 10:06:22 -04:00
return _then ( _ $PreferencesImpl (
2024-07-26 16:51:03 -04:00
themePreference: null = = themePreference
? _value . themePreference
: themePreference // ignore: cast_nullable_to_non_nullable
2023-07-28 20:36:05 -04:00
as ThemePreferences ,
2024-07-26 16:51:03 -04:00
languagePreference: null = = languagePreference
? _value . languagePreference
: languagePreference // ignore: cast_nullable_to_non_nullable
2023-07-07 19:33:28 -04:00
as LanguagePreference ,
2024-07-26 16:51:03 -04:00
lockPreference: null = = lockPreference
? _value . lockPreference
: lockPreference // ignore: cast_nullable_to_non_nullable
2023-07-07 19:33:28 -04:00
as LockPreference ,
2024-07-26 16:51:03 -04:00
notificationsPreference: null = = notificationsPreference
? _value . notificationsPreference
: notificationsPreference // ignore: cast_nullable_to_non_nullable
as NotificationsPreference ,
2023-07-07 19:33:28 -04:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2023-09-28 10:06:22 -04:00
class _ $PreferencesImpl implements _Preferences {
const _ $PreferencesImpl (
2024-07-26 16:51:03 -04:00
{ this . themePreference = ThemePreferences . defaults ,
this . languagePreference = LanguagePreference . defaults ,
this . lockPreference = LockPreference . defaults ,
this . notificationsPreference = NotificationsPreference . defaults } ) ;
2023-07-07 19:33:28 -04:00
2023-09-28 10:06:22 -04:00
factory _ $PreferencesImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $PreferencesImplFromJson ( json ) ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
@ JsonKey ( )
final ThemePreferences themePreference ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
@ JsonKey ( )
final LanguagePreference languagePreference ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
@ JsonKey ( )
final LockPreference lockPreference ;
@ override
@ JsonKey ( )
final NotificationsPreference notificationsPreference ;
2023-07-07 19:33:28 -04:00
@ override
String toString ( ) {
2024-07-26 16:51:03 -04:00
return ' Preferences(themePreference: $ themePreference , languagePreference: $ languagePreference , lockPreference: $ lockPreference , notificationsPreference: $ notificationsPreference ) ' ;
2023-07-07 19:33:28 -04:00
}
@ override
2023-12-18 20:05:23 -05:00
bool operator = = ( Object other ) {
2023-07-07 19:33:28 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-09-28 10:06:22 -04:00
other is _ $PreferencesImpl & &
2024-07-26 16:51:03 -04:00
( identical ( other . themePreference , themePreference ) | |
other . themePreference = = themePreference ) & &
( identical ( other . languagePreference , languagePreference ) | |
other . languagePreference = = languagePreference ) & &
( identical ( other . lockPreference , lockPreference ) | |
other . lockPreference = = lockPreference ) & &
( identical (
other . notificationsPreference , notificationsPreference ) | |
other . notificationsPreference = = notificationsPreference ) ) ;
2023-07-07 19:33:28 -04:00
}
@ JsonKey ( ignore: true )
@ override
2024-07-26 16:51:03 -04:00
int get hashCode = > Object . hash ( runtimeType , themePreference ,
languagePreference , lockPreference , notificationsPreference ) ;
2023-07-07 19:33:28 -04:00
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2023-09-28 10:06:22 -04:00
_ $ $PreferencesImplCopyWith < _ $PreferencesImpl > get copyWith = >
__ $ $PreferencesImplCopyWithImpl < _ $PreferencesImpl > ( this , _ $identity ) ;
2023-07-07 19:33:28 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2023-09-28 10:06:22 -04:00
return _ $ $PreferencesImplToJson (
2023-07-07 19:33:28 -04:00
this ,
) ;
}
}
abstract class _Preferences implements Preferences {
const factory _Preferences (
2024-07-26 16:51:03 -04:00
{ final ThemePreferences themePreference ,
final LanguagePreference languagePreference ,
final LockPreference lockPreference ,
final NotificationsPreference notificationsPreference } ) =
_ $PreferencesImpl ;
2023-07-07 19:33:28 -04:00
factory _Preferences . fromJson ( Map < String , dynamic > json ) =
2023-09-28 10:06:22 -04:00
_ $PreferencesImpl . fromJson ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
ThemePreferences get themePreference ;
@ override
LanguagePreference get languagePreference ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
LockPreference get lockPreference ;
2023-07-07 19:33:28 -04:00
@ override
2024-07-26 16:51:03 -04:00
NotificationsPreference get notificationsPreference ;
2023-07-07 19:33:28 -04:00
@ override
@ JsonKey ( ignore: true )
2023-09-28 10:06:22 -04:00
_ $ $PreferencesImplCopyWith < _ $PreferencesImpl > get copyWith = >
2023-07-07 19:33:28 -04:00
throw _privateConstructorUsedError ;
}