toType method
Implementation
Type toType() {
switch (this) {
case 'PullRequest':
return Type.pullRequest;
case 'RepositoryAnalysis':
return Type.repositoryAnalysis;
}
throw Exception('$this is not known in enum Type');
}
Type toType() {
switch (this) {
case 'PullRequest':
return Type.pullRequest;
case 'RepositoryAnalysis':
return Type.repositoryAnalysis;
}
throw Exception('$this is not known in enum Type');
}