mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 06:27:56 +00:00
adding the delay
This commit is contained in:
@@ -68,27 +68,26 @@ class Action {
|
||||
}
|
||||
|
||||
class ExecutorProperty {
|
||||
final String functionCode;
|
||||
final String? functionCode;
|
||||
final dynamic functionValue;
|
||||
final dynamic delaySeconds;
|
||||
|
||||
ExecutorProperty({
|
||||
required this.functionCode,
|
||||
required this.functionValue,
|
||||
this.functionCode,
|
||||
this.functionValue,
|
||||
this.delaySeconds,
|
||||
});
|
||||
|
||||
factory ExecutorProperty.fromRawJson(String str) =>
|
||||
ExecutorProperty.fromJson(json.decode(str));
|
||||
|
||||
String toRawJson() => json.encode(toJson());
|
||||
|
||||
factory ExecutorProperty.fromJson(Map<String, dynamic> json) =>
|
||||
ExecutorProperty(
|
||||
functionCode: json["functionCode"],
|
||||
functionCode: json["functionCode"] ?? '',
|
||||
functionValue: json["functionValue"],
|
||||
delaySeconds: json["delaySeconds"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"functionCode": functionCode,
|
||||
"functionValue": functionValue,
|
||||
"delaySeconds": delaySeconds,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user