SmartSceneWeekTimeslot class
Represent that data on light state during different time slots throughout the day.
Constructors
- SmartSceneWeekTimeslot({required SmartSceneWeekStartTime startTime, required Relative target})
- Creates a SmartSceneWeekTimeslot object.
- SmartSceneWeekTimeslot.empty()
- Creates an empty SmartSceneWeekTimeslot object.
-
SmartSceneWeekTimeslot.fromJson(Map<
String, dynamic> dataMap) -
Creates a SmartSceneWeekTimeslot object from the JSON response to a GET
request.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime ↔ SmartSceneWeekStartTime
-
The start time of this time slot.
getter/setter pair
- target ↔ Relative
-
The identifier of the scene to recall.
getter/setter pair
Methods
-
copyWith(
{SmartSceneWeekStartTime? startTime, Relative? target, bool copyOriginalValues = true}) → SmartSceneWeekTimeslot - 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