DeviceView class

Constructors

DeviceView({List<LinkView> accounts = const [], int? activeSessions, String? host, String? lastSeen, String? machine, String? os})
Returns a new DeviceView instance.

Properties

accounts ↔ List<LinkView>
Accounts is every account the caller has signed in on this machine.
getter/setter pair
activeSessions ↔ int?
ActiveSessions is how many agent sessions the caller currently has running on this machine; 0 where the agent plane is not mounted.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
host ↔ String?
Host is the machine's hostname label, from its most-recently-seen account.
getter/setter pair
lastSeen ↔ String?
LastSeen is when any account on this machine last reported, RFC 3339 UTC.
getter/setter pair
machine ↔ String?
Machine is the stable machine identifier.
getter/setter pair
os ↔ String?
OS is the machine's operating system label.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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