toSourceRepository method
Implementation
SourceRepository toSourceRepository() {
switch (this) {
case 'CodeCommit':
return SourceRepository.codeCommit;
case 'S3':
return SourceRepository.s3;
}
throw Exception('$this is not known in enum SourceRepository');
}