toSourceType method
Implementation
SourceType toSourceType() {
switch (this) {
case 'git':
return SourceType.git;
case 'svn':
return SourceType.svn;
case 'archive':
return SourceType.archive;
case 's3':
return SourceType.s3;
}
throw Exception('$this is not known in enum SourceType');
}