mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-15 02:54:18 -05:00
40 lines
1.5 KiB
Dart
40 lines
1.5 KiB
Dart
// 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(
|
|
darkMode: DarkModePreference.fromJson(json['dark_mode']),
|
|
themeColor: ColorPreference.fromJson(json['theme_color']),
|
|
language: LanguagePreference.fromJson(json['language']),
|
|
displayScale: json['display_scale'] as int,
|
|
locking: LockPreference.fromJson(json['locking']),
|
|
);
|
|
|
|
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(),
|
|
};
|