LightEffects class

Represents the effects of a light.

Constructors

LightEffects({required String effect, required List<String> effectValues, required String status, required List<String> statusValues})
Creates a LightEffects object.
LightEffects.empty()
Creates an empty LightEffects object.
LightEffects.fromJson(Map<String, dynamic> dataMap)
Creates a LightEffects object from the JSON response to a GET request.
factory

Properties

effect String
Alert effect for the light.
getter/setter pair
effectValues List<String>
Possible 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 effects
final
statusValues List<String>
Possible status values in which a light could be when playing an effect.
final

Methods

copyWith({String? effect, List<String>? effectValues, String? status, List<String>? statusValues, bool copyOriginalValues = true}) LightEffects
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