toDeploymentTargetType method
Implementation
DeploymentTargetType toDeploymentTargetType() {
switch (this) {
case 'InstanceTarget':
return DeploymentTargetType.instanceTarget;
case 'LambdaTarget':
return DeploymentTargetType.lambdaTarget;
case 'ECSTarget':
return DeploymentTargetType.eCSTarget;
case 'CloudFormationTarget':
return DeploymentTargetType.cloudFormationTarget;
}
throw Exception('$this is not known in enum DeploymentTargetType');
}