toPartitionIndexStatus method
Implementation
PartitionIndexStatus toPartitionIndexStatus() {
switch (this) {
case 'CREATING':
return PartitionIndexStatus.creating;
case 'ACTIVE':
return PartitionIndexStatus.active;
case 'DELETING':
return PartitionIndexStatus.deleting;
case 'FAILED':
return PartitionIndexStatus.failed;
}
throw Exception('$this is not known in enum PartitionIndexStatus');
}