LightTimedEffects class
Represents the timed effects of a light.
Constructors
-
LightTimedEffects({required String effect, required List<
String> effectValues, required int duration, required String status, required List<String> statusValues}) - Creates a LightTimedEffects object.
- LightTimedEffects.empty()
- Creates an empty LightTimedEffects object.
-
LightTimedEffects.fromJson(Map<
String, dynamic> dataMap) -
Creates a LightTimedEffects object from the JSON response to a GET
request.
factory
Properties
- duration ↔ int
-
Duration is mandatory when timed effect is set except for noEffect.
getter/setter pair
- effect ↔ String
-
Alert effect for the light.
getter/setter pair
-
effectValues
→ List<
String> -
Possible timed effect values you can set in a light.
final
- 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
-
Current status values the light is in regarding timed effects.
final
-
statusValues
→ List<
String> -
Possible status values in which a light could be when playing a timed effect.
final
Methods
-
copyWith(
{String? effect, List< String> ? effectValues, int? duration, String? status, List<String> ? statusValues, bool copyOriginalValues = true}) → LightTimedEffects - 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