Device class
Json representation of a device
- Annotations
-
- @JsonSerializable()
Constructors
- Device()
-
Device.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The device ID. This may be
null
.getter/setter pair - isActive ↔ bool?
-
getter/setter pair
- isPrivateSession ↔ bool?
-
Whether controlling this device is restricted.
At present if this is
true
then no Web API commands will be accepted by this device.getter/setter pair - isRestricted ↔ bool?
-
Whether controlling this device is restricted.
At present if this is
true
then no Web API commands will be accepted by this device.getter/setter pair - name ↔ String?
-
The name of the device
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ DeviceType?
-
DeviceType, such as DeviceType.Computer, DeviceType.Smartphone or
DeviceType.Speaker.
getter/setter pair
- volumePercent ↔ int?
-
The current volume in percent. This may be
null
.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited