toContainerServicePowerName method
Implementation
ContainerServicePowerName toContainerServicePowerName() {
switch (this) {
case 'nano':
return ContainerServicePowerName.nano;
case 'micro':
return ContainerServicePowerName.micro;
case 'small':
return ContainerServicePowerName.small;
case 'medium':
return ContainerServicePowerName.medium;
case 'large':
return ContainerServicePowerName.large;
case 'xlarge':
return ContainerServicePowerName.xlarge;
}
throw Exception('$this is not known in enum ContainerServicePowerName');
}