toValue method
Implementation
String toValue() {
  switch (this) {
    case LastCrawlStatus.succeeded:
      return 'SUCCEEDED';
    case LastCrawlStatus.cancelled:
      return 'CANCELLED';
    case LastCrawlStatus.failed:
      return 'FAILED';
  }
}