toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case IndexStatus.active:
      return 'ACTIVE';
    case IndexStatus.building:
      return 'BUILDING';
    case IndexStatus.rebuilding:
      return 'REBUILDING';
  }
}