veilidchat/lib/entities/preferences.g.dart

40 lines
1.5 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
// **************************************************************************
_$_LockPreference _$$_LockPreferenceFromJson(Map<String, dynamic> json) =>
_$_LockPreference(
inactivityLockSecs: json['inactivity_lock_secs'] as int,
lockWhenSwitching: json['lock_when_switching'] as bool,
lockWithSystemLock: json['lock_with_system_lock'] as bool,
);
Map<String, dynamic> _$$_LockPreferenceToJson(_$_LockPreference instance) =>
<String, dynamic>{
'inactivity_lock_secs': instance.inactivityLockSecs,
'lock_when_switching': instance.lockWhenSwitching,
'lock_with_system_lock': instance.lockWithSystemLock,
};
_$_Preferences _$$_PreferencesFromJson(Map<String, dynamic> json) =>
_$_Preferences(
2023-07-25 01:04:34 -04:00
darkMode: DarkModePreference.fromJson(json['dark_mode']),
themeColor: ColorPreference.fromJson(json['theme_color']),
language: LanguagePreference.fromJson(json['language']),
2023-07-07 19:33:28 -04:00
displayScale: json['display_scale'] as int,
2023-07-25 01:04:34 -04:00
locking: LockPreference.fromJson(json['locking']),
2023-07-07 19:33:28 -04:00
);
Map<String, dynamic> _$$_PreferencesToJson(_$_Preferences instance) =>
<String, dynamic>{
'dark_mode': instance.darkMode.toJson(),
'theme_color': instance.themeColor.toJson(),
'language': instance.language.toJson(),
'display_scale': instance.displayScale,
'locking': instance.locking.toJson(),
};