lemmur-app-android/lib/stores/config_store.g.dart

36 lines
1.4 KiB
Dart
Raw Normal View History

2021-02-24 21:54:15 +01:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'config_store.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2021-09-13 23:37:08 +02:00
ConfigStore _$ConfigStoreFromJson(Map<String, dynamic> json) => ConfigStore()
..theme =
$enumDecodeNullable(_$ThemeModeEnumMap, json['theme']) ?? ThemeMode.system
2021-09-13 23:37:08 +02:00
..amoledDarkMode = json['amoledDarkMode'] as bool? ?? false
..locale = LocaleSerde.fromJson(json['locale'] as String?)
..showAvatars = json['showAvatars'] as bool? ?? true
..showScores = json['showScores'] as bool? ?? true
..defaultSortType = _sortTypeFromJson(json['defaultSortType'] as String?)
..defaultListingType =
_postListingTypeFromJson(json['defaultListingType'] as String?);
2021-02-24 21:54:15 +01:00
Map<String, dynamic> _$ConfigStoreToJson(ConfigStore instance) =>
<String, dynamic>{
'theme': _$ThemeModeEnumMap[instance.theme],
'amoledDarkMode': instance.amoledDarkMode,
2021-02-27 17:02:55 +01:00
'locale': LocaleSerde.toJson(instance.locale),
2021-04-16 20:15:48 +02:00
'showAvatars': instance.showAvatars,
'showScores': instance.showScores,
2021-04-16 21:43:02 +02:00
'defaultSortType': instance.defaultSortType,
'defaultListingType': instance.defaultListingType,
2021-02-24 21:54:15 +01:00
};
const _$ThemeModeEnumMap = {
ThemeMode.system: 'system',
ThemeMode.light: 'light',
ThemeMode.dark: 'dark',
};