toIndexStatus method

IndexStatus toIndexStatus()

Implementation

IndexStatus toIndexStatus() {
  switch (this) {
    case 'ACTIVE':
      return IndexStatus.active;
    case 'BUILDING':
      return IndexStatus.building;
    case 'REBUILDING':
      return IndexStatus.rebuilding;
  }
  throw Exception('$this is not known in enum IndexStatus');
}