toArtifactsType method

ArtifactsType toArtifactsType()

Implementation

ArtifactsType toArtifactsType() {
  switch (this) {
    case 'CODEPIPELINE':
      return ArtifactsType.codepipeline;
    case 'S3':
      return ArtifactsType.s3;
    case 'NO_ARTIFACTS':
      return ArtifactsType.noArtifacts;
  }
  throw Exception('$this is not known in enum ArtifactsType');
}