toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RobotStatus.available:
      return 'Available';
    case RobotStatus.registered:
      return 'Registered';
    case RobotStatus.pendingNewDeployment:
      return 'PendingNewDeployment';
    case RobotStatus.deploying:
      return 'Deploying';
    case RobotStatus.failed:
      return 'Failed';
    case RobotStatus.inSync:
      return 'InSync';
    case RobotStatus.noResponse:
      return 'NoResponse';
  }
}