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