toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CrawlerState.ready:
      return 'READY';
    case CrawlerState.running:
      return 'RUNNING';
    case CrawlerState.stopping:
      return 'STOPPING';
  }
}