parse static method
- String? s
Parses a Go ipn.State string into a NodeState.
Implementation
static NodeState parse(String? s) => switch (s) {
'NoState' => NodeState.noState,
'NeedsLogin' => NodeState.needsLogin,
'NeedsMachineAuth' => NodeState.needsMachineAuth,
'Starting' => NodeState.starting,
'Running' => NodeState.running,
'Stopped' => NodeState.stopped,
_ => NodeState.noState,
};