2023-12-26 20:26:54 -05:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'theme_preference.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
_$ThemePreferencesImpl _$$ThemePreferencesImplFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
_$ThemePreferencesImpl(
|
2024-07-26 16:51:03 -04:00
|
|
|
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,
|
2023-12-26 20:26:54 -05:00
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$ThemePreferencesImplToJson(
|
|
|
|
_$ThemePreferencesImpl instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'brightness_preference': instance.brightnessPreference.toJson(),
|
|
|
|
'color_preference': instance.colorPreference.toJson(),
|
|
|
|
'display_scale': instance.displayScale,
|
|
|
|
};
|