veilidchat/lib/entities/preferences.g.dart

54 lines
2.0 KiB
Dart
Raw Normal View History

2023-07-07 19:33:28 -04:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'preferences.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2023-09-28 10:06:22 -04:00
_$LockPreferenceImpl _$$LockPreferenceImplFromJson(Map<String, dynamic> json) =>
_$LockPreferenceImpl(
2023-07-07 19:33:28 -04:00
inactivityLockSecs: json['inactivity_lock_secs'] as int,
lockWhenSwitching: json['lock_when_switching'] as bool,
lockWithSystemLock: json['lock_with_system_lock'] as bool,
);
2023-09-28 10:06:22 -04:00
Map<String, dynamic> _$$LockPreferenceImplToJson(
_$LockPreferenceImpl instance) =>
2023-07-07 19:33:28 -04:00
<String, dynamic>{
'inactivity_lock_secs': instance.inactivityLockSecs,
'lock_when_switching': instance.lockWhenSwitching,
'lock_with_system_lock': instance.lockWithSystemLock,
};
2023-09-28 10:06:22 -04:00
_$ThemePreferencesImpl _$$ThemePreferencesImplFromJson(
Map<String, dynamic> json) =>
_$ThemePreferencesImpl(
2023-07-28 20:36:05 -04:00
brightnessPreference:
BrightnessPreference.fromJson(json['brightness_preference']),
colorPreference: ColorPreference.fromJson(json['color_preference']),
displayScale: (json['display_scale'] as num).toDouble(),
);
2023-09-28 10:06:22 -04:00
Map<String, dynamic> _$$ThemePreferencesImplToJson(
_$ThemePreferencesImpl instance) =>
2023-07-28 20:36:05 -04:00
<String, dynamic>{
'brightness_preference': instance.brightnessPreference.toJson(),
'color_preference': instance.colorPreference.toJson(),
'display_scale': instance.displayScale,
};
2023-09-28 10:06:22 -04:00
_$PreferencesImpl _$$PreferencesImplFromJson(Map<String, dynamic> json) =>
_$PreferencesImpl(
2023-07-28 20:36:05 -04:00
themePreferences: ThemePreferences.fromJson(json['theme_preferences']),
2023-07-25 01:04:34 -04:00
language: LanguagePreference.fromJson(json['language']),
locking: LockPreference.fromJson(json['locking']),
2023-07-07 19:33:28 -04:00
);
2023-09-28 10:06:22 -04:00
Map<String, dynamic> _$$PreferencesImplToJson(_$PreferencesImpl instance) =>
2023-07-07 19:33:28 -04:00
<String, dynamic>{
2023-07-28 20:36:05 -04:00
'theme_preferences': instance.themePreferences.toJson(),
2023-07-07 19:33:28 -04:00
'language': instance.language.toJson(),
'locking': instance.locking.toJson(),
};