Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Added missing generated files

Michael Rademaker101aec1faba8
diff --git a/console/generic_app/lib/models/AlertAction.g.dart b/console/generic_app/lib/models/AlertAction.g.dart
new file mode 100644
index 000000000..08a7e3d28
--- /dev/null
+++ b/console/generic_app/lib/models/AlertAction.g.dart
@@ -0,0 +1,26 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'AlertAction.dart';
+
+// **************************************************************************
+// JsonSerializableGenerator
+// **************************************************************************
+
+AlertAction _$AlertActionFromJson(Map<String, dynamic> json) {
+ return AlertAction(
+ url: json['url'] as String,
+ httpMethod: json['httpMethod'] as String,
+ data: json['data'] as Map<String, dynamic>,
+ silent: json['silent'] as bool,
+ openInBrowser: json['openInBrowser'] as bool,
+ );
+}
+
+Map<String, dynamic> _$AlertActionToJson(AlertAction instance) =>
+ <String, dynamic>{
+ 'url': instance.url,
+ 'httpMethod': instance.httpMethod,
+ 'data': instance.data,
+ 'silent': instance.silent,
+ 'openInBrowser': instance.openInBrowser,
+ };
diff --git a/console/generic_app/lib/models/AlertButton.g.dart b/console/generic_app/lib/models/AlertButton.g.dart
new file mode 100644
index 000000000..af97bdae3
--- /dev/null
+++ b/console/generic_app/lib/models/AlertButton.g.dart
@@ -0,0 +1,22 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'AlertButton.dart';
+
+// **************************************************************************
+// JsonSerializableGenerator
+// **************************************************************************
+
+AlertButton _$AlertButtonFromJson(Map<String, dynamic> json) {
+ return AlertButton(
+ title: json['title'] as String,
+ action: json['action'] == null
+ ? null
+ : AlertAction.fromJson(json['action'] as Map<String, dynamic>),
+ );
+}
+
+Map<String, dynamic> _$AlertButtonToJson(AlertButton instance) =>
+ <String, dynamic>{
+ 'title': instance.title,
+ 'action': instance.action,
+ };