toAgentStatus method

AgentStatus toAgentStatus()

Implementation

AgentStatus toAgentStatus() {
  switch (this) {
    case 'ONLINE':
      return AgentStatus.online;
    case 'OFFLINE':
      return AgentStatus.offline;
  }
  throw Exception('$this is not known in enum AgentStatus');
}