SceneRecall class

Represents the recall settings for a scene.

Constructors

SceneRecall({required String action, required String status, required int duration, required LightDimming dimming})
Creates a SceneRecall object.
SceneRecall.empty()
Creates an empty SceneRecall object.
SceneRecall.fromJson(Map<String, dynamic> dataMap)
Creates a SceneRecall object from the JSON response to a GET request.
factory

Properties

action String
When writing active, the actions in the scene are executed on the target.
getter/setter pair
dimming LightDimming
Override the scene dimming/brightness.
getter/setter pair
duration int
Transition to the scene within the time frame given by duration.
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
status String
When writing active, the actions in the scene are executed on the target.
getter/setter pair

Methods

copyWith({String? action, String? status, int? duration, LightDimming? dimming, bool copyOriginalValues = true}) SceneRecall
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