toCRAllocationStrategy method
Implementation
CRAllocationStrategy toCRAllocationStrategy() {
switch (this) {
case 'BEST_FIT':
return CRAllocationStrategy.bestFit;
case 'BEST_FIT_PROGRESSIVE':
return CRAllocationStrategy.bestFitProgressive;
case 'SPOT_CAPACITY_OPTIMIZED':
return CRAllocationStrategy.spotCapacityOptimized;
}
throw Exception('$this is not known in enum CRAllocationStrategy');
}