toAgentStatus method

AgentStatus toAgentStatus()

Implementation

AgentStatus toAgentStatus() {
  switch (this) {
    case 'HEALTHY':
      return AgentStatus.healthy;
    case 'UNHEALTHY':
      return AgentStatus.unhealthy;
    case 'RUNNING':
      return AgentStatus.running;
    case 'UNKNOWN':
      return AgentStatus.unknown;
    case 'BLACKLISTED':
      return AgentStatus.blacklisted;
    case 'SHUTDOWN':
      return AgentStatus.shutdown;
  }
  throw Exception('$this is not known in enum AgentStatus');
}