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