toAgentUpdateStatus method
Implementation
AgentUpdateStatus toAgentUpdateStatus() {
switch (this) {
case 'PENDING':
return AgentUpdateStatus.pending;
case 'STAGING':
return AgentUpdateStatus.staging;
case 'STAGED':
return AgentUpdateStatus.staged;
case 'UPDATING':
return AgentUpdateStatus.updating;
case 'UPDATED':
return AgentUpdateStatus.updated;
case 'FAILED':
return AgentUpdateStatus.failed;
}
throw Exception('$this is not known in enum AgentUpdateStatus');
}