This commit is contained in:
ashrafzarkanisala
2024-07-29 22:36:05 +03:00
parent 63cdca5717
commit 2f6d073955
12 changed files with 441 additions and 359 deletions

View File

@ -102,12 +102,18 @@ class CreateSceneAction {
}
Map<String, dynamic> toMap() {
return {
'entityId': entityId,
'actionExecutor': actionExecutor,
if (executorProperty != null)
if (executorProperty != null) {
return {
'entityId': entityId,
'actionExecutor': actionExecutor,
'executorProperty': executorProperty?.toMap(actionExecutor),
};
};
} else {
return {
'entityId': entityId,
'actionExecutor': actionExecutor,
};
}
}
factory CreateSceneAction.fromMap(Map<String, dynamic> map) {