toNodeType method

NodeType toNodeType()

Implementation

NodeType toNodeType() {
  switch (this) {
    case 'BROKER':
      return NodeType.broker;
  }
  throw Exception('$this is not known in enum NodeType');
}