toRobotStatus method
Implementation
RobotStatus toRobotStatus() {
switch (this) {
case 'Available':
return RobotStatus.available;
case 'Registered':
return RobotStatus.registered;
case 'PendingNewDeployment':
return RobotStatus.pendingNewDeployment;
case 'Deploying':
return RobotStatus.deploying;
case 'Failed':
return RobotStatus.failed;
case 'InSync':
return RobotStatus.inSync;
case 'NoResponse':
return RobotStatus.noResponse;
}
throw Exception('$this is not known in enum RobotStatus');
}