toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case WorldGenerationJobStatus.pending:
      return 'Pending';
    case WorldGenerationJobStatus.running:
      return 'Running';
    case WorldGenerationJobStatus.completed:
      return 'Completed';
    case WorldGenerationJobStatus.failed:
      return 'Failed';
    case WorldGenerationJobStatus.partialFailed:
      return 'PartialFailed';
    case WorldGenerationJobStatus.canceling:
      return 'Canceling';
    case WorldGenerationJobStatus.canceled:
      return 'Canceled';
  }
}