toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case JobStatus.created:
      return 'CREATED';
    case JobStatus.preparingForInitialization:
      return 'PREPARING_FOR_INITIALIZATION';
    case JobStatus.initializing:
      return 'INITIALIZING';
    case JobStatus.processing:
      return 'PROCESSING';
    case JobStatus.pendingJob:
      return 'PENDING_JOB';
    case JobStatus.completing:
      return 'COMPLETING';
    case JobStatus.completed:
      return 'COMPLETED';
    case JobStatus.failing:
      return 'FAILING';
    case JobStatus.failed:
      return 'FAILED';
  }
}