toCapacitySizeType method
Implementation
CapacitySizeType toCapacitySizeType() {
switch (this) {
case 'INSTANCE_COUNT':
return CapacitySizeType.instanceCount;
case 'CAPACITY_PERCENT':
return CapacitySizeType.capacityPercent;
}
throw Exception('$this is not known in enum CapacitySizeType');
}