toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CrawlState.running:
      return 'RUNNING';
    case CrawlState.cancelling:
      return 'CANCELLING';
    case CrawlState.cancelled:
      return 'CANCELLED';
    case CrawlState.succeeded:
      return 'SUCCEEDED';
    case CrawlState.failed:
      return 'FAILED';
  }
}