mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
83
lib/models/settings/client_settings_model.g.dart
Normal file
83
lib/models/settings/client_settings_model.g.dart
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'client_settings_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$ClientSettingsModelImpl _$$ClientSettingsModelImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$ClientSettingsModelImpl(
|
||||
syncPath: json['syncPath'] as String?,
|
||||
position: json['position'] == null
|
||||
? const Vector2(x: 0, y: 0)
|
||||
: Vector2.fromJson(json['position'] as String),
|
||||
size: json['size'] == null
|
||||
? const Vector2(x: 1280, y: 720)
|
||||
: Vector2.fromJson(json['size'] as String),
|
||||
timeOut: json['timeOut'] == null
|
||||
? const Duration(seconds: 30)
|
||||
: Duration(microseconds: (json['timeOut'] as num).toInt()),
|
||||
nextUpDateCutoff: json['nextUpDateCutoff'] == null
|
||||
? null
|
||||
: Duration(microseconds: (json['nextUpDateCutoff'] as num).toInt()),
|
||||
themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ??
|
||||
ThemeMode.system,
|
||||
themeColor: $enumDecodeNullable(_$ColorThemesEnumMap, json['themeColor']),
|
||||
amoledBlack: json['amoledBlack'] as bool? ?? false,
|
||||
blurPlaceHolders: json['blurPlaceHolders'] as bool? ?? false,
|
||||
blurUpcomingEpisodes: json['blurUpcomingEpisodes'] as bool? ?? false,
|
||||
selectedLocale:
|
||||
const LocaleConvert().fromJson(json['selectedLocale'] as String?),
|
||||
enableMediaKeys: json['enableMediaKeys'] as bool? ?? true,
|
||||
posterSize: (json['posterSize'] as num?)?.toDouble() ?? 1.0,
|
||||
pinchPosterZoom: json['pinchPosterZoom'] as bool? ?? false,
|
||||
mouseDragSupport: json['mouseDragSupport'] as bool? ?? false,
|
||||
libraryPageSize: (json['libraryPageSize'] as num?)?.toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ClientSettingsModelImplToJson(
|
||||
_$ClientSettingsModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'syncPath': instance.syncPath,
|
||||
'position': instance.position,
|
||||
'size': instance.size,
|
||||
'timeOut': instance.timeOut?.inMicroseconds,
|
||||
'nextUpDateCutoff': instance.nextUpDateCutoff?.inMicroseconds,
|
||||
'themeMode': _$ThemeModeEnumMap[instance.themeMode]!,
|
||||
'themeColor': _$ColorThemesEnumMap[instance.themeColor],
|
||||
'amoledBlack': instance.amoledBlack,
|
||||
'blurPlaceHolders': instance.blurPlaceHolders,
|
||||
'blurUpcomingEpisodes': instance.blurUpcomingEpisodes,
|
||||
'selectedLocale': const LocaleConvert().toJson(instance.selectedLocale),
|
||||
'enableMediaKeys': instance.enableMediaKeys,
|
||||
'posterSize': instance.posterSize,
|
||||
'pinchPosterZoom': instance.pinchPosterZoom,
|
||||
'mouseDragSupport': instance.mouseDragSupport,
|
||||
'libraryPageSize': instance.libraryPageSize,
|
||||
};
|
||||
|
||||
const _$ThemeModeEnumMap = {
|
||||
ThemeMode.system: 'system',
|
||||
ThemeMode.light: 'light',
|
||||
ThemeMode.dark: 'dark',
|
||||
};
|
||||
|
||||
const _$ColorThemesEnumMap = {
|
||||
ColorThemes.fladder: 'fladder',
|
||||
ColorThemes.deepOrange: 'deepOrange',
|
||||
ColorThemes.amber: 'amber',
|
||||
ColorThemes.green: 'green',
|
||||
ColorThemes.lightGreen: 'lightGreen',
|
||||
ColorThemes.lime: 'lime',
|
||||
ColorThemes.cyan: 'cyan',
|
||||
ColorThemes.blue: 'blue',
|
||||
ColorThemes.lightBlue: 'lightBlue',
|
||||
ColorThemes.indigo: 'indigo',
|
||||
ColorThemes.deepBlue: 'deepBlue',
|
||||
ColorThemes.brown: 'brown',
|
||||
ColorThemes.purple: 'purple',
|
||||
ColorThemes.deepPurple: 'deepPurple',
|
||||
ColorThemes.blueGrey: 'blueGrey',
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue