toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AlgorithmStatus.pending:
      return 'Pending';
    case AlgorithmStatus.inProgress:
      return 'InProgress';
    case AlgorithmStatus.completed:
      return 'Completed';
    case AlgorithmStatus.failed:
      return 'Failed';
    case AlgorithmStatus.deleting:
      return 'Deleting';
  }
}