toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ExecutionStatus.pending:
      return 'Pending';
    case ExecutionStatus.completed:
      return 'Completed';
    case ExecutionStatus.completedWithViolations:
      return 'CompletedWithViolations';
    case ExecutionStatus.inProgress:
      return 'InProgress';
    case ExecutionStatus.failed:
      return 'Failed';
    case ExecutionStatus.stopping:
      return 'Stopping';
    case ExecutionStatus.stopped:
      return 'Stopped';
  }
}