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