forked from fluttercommunity/flutter_launcher_icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flutter_launcher_icons_config.g.dart
111 lines (103 loc) · 4.24 KB
/
flutter_launcher_icons_config.g.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'flutter_launcher_icons_config.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
FlutterLauncherIconsConfig _$FlutterLauncherIconsConfigFromJson(Map json) =>
$checkedCreate(
'FlutterLauncherIconsConfig',
json,
($checkedConvert) {
final val = FlutterLauncherIconsConfig(
imagePath: $checkedConvert('image_path', (v) => v as String?),
android: $checkedConvert('android', (v) => v ?? false),
ios: $checkedConvert('ios', (v) => v ?? false),
imagePathAndroid:
$checkedConvert('image_path_android', (v) => v as String?),
imagePathIOS: $checkedConvert('image_path_ios', (v) => v as String?),
adaptiveIconForeground:
$checkedConvert('adaptive_icon_foreground', (v) => v as String?),
adaptiveIconBackground:
$checkedConvert('adaptive_icon_background', (v) => v as String?),
minSdkAndroid:
$checkedConvert('min_sdk_android', (v) => v as int? ?? 21),
removeAlphaIOS:
$checkedConvert('remove_alpha_ios', (v) => v as bool? ?? false),
webConfig: $checkedConvert(
'web', (v) => v == null ? null : WebConfig.fromJson(v as Map)),
windowsConfig: $checkedConvert('windows',
(v) => v == null ? null : WindowsConfig.fromJson(v as Map)),
);
return val;
},
fieldKeyMap: const {
'imagePath': 'image_path',
'imagePathAndroid': 'image_path_android',
'imagePathIOS': 'image_path_ios',
'adaptiveIconForeground': 'adaptive_icon_foreground',
'adaptiveIconBackground': 'adaptive_icon_background',
'minSdkAndroid': 'min_sdk_android',
'removeAlphaIOS': 'remove_alpha_ios',
'webConfig': 'web',
'windowsConfig': 'windows'
},
);
Map<String, dynamic> _$FlutterLauncherIconsConfigToJson(
FlutterLauncherIconsConfig instance) =>
<String, dynamic>{
'image_path': instance.imagePath,
'android': instance.android,
'ios': instance.ios,
'image_path_android': instance.imagePathAndroid,
'image_path_ios': instance.imagePathIOS,
'adaptive_icon_foreground': instance.adaptiveIconForeground,
'adaptive_icon_background': instance.adaptiveIconBackground,
'min_sdk_android': instance.minSdkAndroid,
'remove_alpha_ios': instance.removeAlphaIOS,
'web': instance.webConfig,
'windows': instance.windowsConfig,
};
WebConfig _$WebConfigFromJson(Map json) => $checkedCreate(
'WebConfig',
json,
($checkedConvert) {
final val = WebConfig(
generate: $checkedConvert('generate', (v) => v as bool? ?? false),
imagePath: $checkedConvert('image_path', (v) => v as String?),
backgroundColor:
$checkedConvert('background_color', (v) => v as String?),
themeColor: $checkedConvert('theme_color', (v) => v as String?),
);
return val;
},
fieldKeyMap: const {
'imagePath': 'image_path',
'backgroundColor': 'background_color',
'themeColor': 'theme_color'
},
);
Map<String, dynamic> _$WebConfigToJson(WebConfig instance) => <String, dynamic>{
'generate': instance.generate,
'image_path': instance.imagePath,
'background_color': instance.backgroundColor,
'theme_color': instance.themeColor,
};
WindowsConfig _$WindowsConfigFromJson(Map json) => $checkedCreate(
'WindowsConfig',
json,
($checkedConvert) {
final val = WindowsConfig(
generate: $checkedConvert('generate', (v) => v as bool? ?? false),
imagePath: $checkedConvert('image_path', (v) => v as String?),
iconSize: $checkedConvert('icon_size', (v) => v as int?),
);
return val;
},
fieldKeyMap: const {'imagePath': 'image_path', 'iconSize': 'icon_size'},
);
Map<String, dynamic> _$WindowsConfigToJson(WindowsConfig instance) =>
<String, dynamic>{
'generate': instance.generate,
'image_path': instance.imagePath,
'icon_size': instance.iconSize,
};