SceneAction class
Represents an action to be executed on recall.
Constructors
- SceneAction({required Relative target, required SceneActionAction action})
- Creates a SceneAction object.
- SceneAction.empty()
- Creates an empty SceneAction object.
-
SceneAction.fromJson(Map<
String, dynamic> dataMap) -
Creates a SceneAction object from the JSON response to a GET request.
factory
Properties
- action ↔ SceneActionAction
-
The action to be executed on recall
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target ↔ Relative
-
The identifier of the light to execute the action on.
getter/setter pair
Methods
-
copyWith(
{Relative? target, SceneActionAction? action, bool copyOriginalValues = true}) → SceneAction - Returns a copy of this object with its field values replaced by the ones provided to this method.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshOriginals(
) → void - Called after a successful PUT request, this method refreshed the "original" data in this object.
-
toJson(
{OptimizeFor optimizeFor = OptimizeFor.put}) → Map< String, dynamic> - Converts this object into JSON format.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override