toIndexStatus method
Implementation
IndexStatus toIndexStatus() {
switch (this) {
case 'CREATING':
return IndexStatus.creating;
case 'ACTIVE':
return IndexStatus.active;
case 'DELETING':
return IndexStatus.deleting;
case 'FAILED':
return IndexStatus.failed;
case 'UPDATING':
return IndexStatus.updating;
case 'SYSTEM_UPDATING':
return IndexStatus.systemUpdating;
}
throw Exception('$this is not known in enum IndexStatus');
}