toDeploymentFailureHandlingPolicy method
Implementation
DeploymentFailureHandlingPolicy toDeploymentFailureHandlingPolicy() {
switch (this) {
case 'ROLLBACK':
return DeploymentFailureHandlingPolicy.rollback;
case 'DO_NOTHING':
return DeploymentFailureHandlingPolicy.doNothing;
}
throw Exception(
'$this is not known in enum DeploymentFailureHandlingPolicy');
}