mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 05:07:55 +00:00
add OneGang product type to routine
This commit is contained in:
@@ -74,6 +74,7 @@ class Action {
|
||||
ExecutorProperty? executorProperty;
|
||||
String? name;
|
||||
String? type;
|
||||
String? productType;
|
||||
|
||||
Action({
|
||||
required this.actionExecutor,
|
||||
@@ -81,6 +82,7 @@ class Action {
|
||||
this.executorProperty,
|
||||
this.name,
|
||||
this.type,
|
||||
this.productType,
|
||||
});
|
||||
|
||||
String toRawJson() => json.encode(toJson());
|
||||
@@ -92,6 +94,7 @@ class Action {
|
||||
entityId: json["entityId"],
|
||||
name: json['name'],
|
||||
type: json['type'],
|
||||
productType: json['productType'],
|
||||
);
|
||||
}
|
||||
if (json["executorProperty"] == null) {
|
||||
@@ -102,6 +105,7 @@ class Action {
|
||||
actionExecutor: json["actionExecutor"],
|
||||
entityId: json["entityId"],
|
||||
executorProperty: ExecutorProperty.fromJson(json["executorProperty"]),
|
||||
productType: json['productType'],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user