LightPowerUpOn class

Represents the on/off settings the light should take on power up.

Constructors

LightPowerUpOn({required LightPowerUpOnMode mode, required LightOn on})
Creates a LightPowerUpOn object.
LightPowerUpOn.empty()
Creates an empty LightPowerUpOn object.
LightPowerUpOn.fromJson(Map<String, dynamic> dataMap)
Creates a LightPowerUpOn object from the JSON response to a GET request.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isOn bool
Whether or not this light is on.
no setter
mode LightPowerUpOnMode
State to activate after power up.
getter/setter pair
on LightOn
On/Off state of the light on=true, off=false.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LightPowerUpOnMode? mode, LightOn? on, bool copyOriginalValues = true}) LightPowerUpOn
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