push changes

This commit is contained in:
ashrafzarkanisala
2024-11-30 20:43:21 +03:00
parent 8d388ac482
commit ce6e7700bc
14 changed files with 852 additions and 305 deletions

View File

@ -17,7 +17,7 @@ class CreateAutomationModel {
required this.actions,
});
Map<String, dynamic> toMap() {
Map<String, dynamic> toMap([String? automationId]) {
return {
'spaceUuid': spaceUuid,
'automationName': automationName,
@ -41,7 +41,7 @@ class CreateAutomationModel {
);
}
String toJson() => json.encode(toMap());
String toJson(String? automationId) => json.encode(toMap(automationId));
factory CreateAutomationModel.fromJson(String source) =>
CreateAutomationModel.fromMap(json.decode(source));