push dialog changes in values

This commit is contained in:
ashrafzarkanisala
2024-07-28 05:04:57 +03:00
parent 0bda828161
commit 50b455b4ae
18 changed files with 645 additions and 33 deletions

View File

@ -81,7 +81,7 @@ class CreateSceneModel {
class CreateSceneAction {
String entityId;
String actionExecutor;
CreateSceneExecutorProperty executorProperty;
CreateSceneExecutorProperty? executorProperty;
CreateSceneAction({
required this.entityId,
@ -105,7 +105,8 @@ class CreateSceneAction {
return {
'entityId': entityId,
'actionExecutor': actionExecutor,
'executorProperty': executorProperty.toMap(actionExecutor),
if (executorProperty != null)
'executorProperty': executorProperty?.toMap(actionExecutor),
};
}