StateManagerDevice class

Constructors

StateManagerDevice({required String id, List<DeviceAvailability> availability = const [], String? ip, required StateManagerDeviceStatus status, List<StateManagerDeviceService> services = const []})
Returns a new StateManagerDevice instance.

Properties

availability ↔ List<DeviceAvailability>
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String
getter/setter pair
ip ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
services ↔ List<StateManagerDeviceService>
getter/setter pair
status ↔ StateManagerDeviceStatus
  • OK: Connected and working - ERROR: Connected but services not working correctly - REBOOT: Device needs to be rebooted - NOT_CONNECTED: License is active but device is not connected to Logbot platform - NOT_CONFIGURED: Device is available locally for setup, license is not active - UPDATING: Device is OK and is downloading new services - OFF: Device is offline or not powered on - UNREACHABLE: Device is connected to the network but services are not responding
  • 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.
    override

    Operators

    operator ==(Object other) → bool
    The equality operator.
    override

    Static Methods

    fromJson(dynamic value) → StateManagerDevice?
    Returns a new StateManagerDevice instance and imports its values from value if it's a Map, null otherwise.
    listFromJson(dynamic json, {bool growable = false}) → List<StateManagerDevice>?
    mapFromJson(dynamic json) → Map<String, StateManagerDevice>
    mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<StateManagerDevice>>

    Constants

    requiredKeys → const Set<String>
    The list of required keys that must be present in a JSON.