toAutoScalingPolicyState method
Implementation
AutoScalingPolicyState toAutoScalingPolicyState() {
switch (this) {
case 'PENDING':
return AutoScalingPolicyState.pending;
case 'ATTACHING':
return AutoScalingPolicyState.attaching;
case 'ATTACHED':
return AutoScalingPolicyState.attached;
case 'DETACHING':
return AutoScalingPolicyState.detaching;
case 'DETACHED':
return AutoScalingPolicyState.detached;
case 'FAILED':
return AutoScalingPolicyState.failed;
}
throw Exception('$this is not known in enum AutoScalingPolicyState');
}