toCrawlState method

CrawlState toCrawlState()

Implementation

CrawlState toCrawlState() {
  switch (this) {
    case 'RUNNING':
      return CrawlState.running;
    case 'CANCELLING':
      return CrawlState.cancelling;
    case 'CANCELLED':
      return CrawlState.cancelled;
    case 'SUCCEEDED':
      return CrawlState.succeeded;
    case 'FAILED':
      return CrawlState.failed;
  }
  throw Exception('$this is not known in enum CrawlState');
}