mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-04-27 10:39:18 -04:00
28 lines
1.1 KiB
Dart
28 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'theme_preference.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_ThemePreferences _$ThemePreferencesFromJson(Map<String, dynamic> json) =>
|
|
_ThemePreferences(
|
|
brightnessPreference: json['brightness_preference'] == null
|
|
? BrightnessPreference.system
|
|
: BrightnessPreference.fromJson(json['brightness_preference']),
|
|
colorPreference: json['color_preference'] == null
|
|
? ColorPreference.vapor
|
|
: ColorPreference.fromJson(json['color_preference']),
|
|
displayScale: (json['display_scale'] as num?)?.toDouble() ?? 1,
|
|
enableWallpaper: json['enable_wallpaper'] as bool? ?? true,
|
|
);
|
|
|
|
Map<String, dynamic> _$ThemePreferencesToJson(_ThemePreferences instance) =>
|
|
<String, dynamic>{
|
|
'brightness_preference': instance.brightnessPreference.toJson(),
|
|
'color_preference': instance.colorPreference.toJson(),
|
|
'display_scale': instance.displayScale,
|
|
'enable_wallpaper': instance.enableWallpaper,
|
|
};
|