NodeView class

Constructors

NodeView({List<String> caps = const [], List<String> commands = const [], String? connectedAt, String? displayName, String? id, String? platform, String? version})
Returns a new NodeView instance.

Properties

caps ↔ List<String>
Caps is the capability list the node reported. It is a self-report, useful to SHOW and never load-bearing: what a node may actually be asked to do is decided at the socket by the deployment's allowlist.
getter/setter pair
commands ↔ List<String>
Commands is the command list the node reported. Same standing as Caps: a self-report, checked again at the socket before anything runs.
getter/setter pair
connectedAt ↔ String?
ConnectedAt is when this node's socket was established, RFC3339 UTC.
getter/setter pair
displayName ↔ String?
DisplayName is the human name the node reported for itself.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the node's own identifier within the org — the value POST /v1/node/{id}/invoke addresses it by.
getter/setter pair
platform ↔ String?
Platform is the operating system and architecture the node reported.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version ↔ String?
Version is the node agent's own version string.
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) → NodeView?
Returns a new NodeView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<NodeView>
mapFromJson(dynamic json) → Map<String, NodeView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<NodeView>>

Constants

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