toArtifactSourceIdType method

ArtifactSourceIdType toArtifactSourceIdType()

Implementation

ArtifactSourceIdType toArtifactSourceIdType() {
  switch (this) {
    case 'MD5Hash':
      return ArtifactSourceIdType.mD5Hash;
    case 'S3ETag':
      return ArtifactSourceIdType.s3ETag;
    case 'S3Version':
      return ArtifactSourceIdType.s3Version;
    case 'Custom':
      return ArtifactSourceIdType.custom;
  }
  throw Exception('$this is not known in enum ArtifactSourceIdType');
}