toType method

Type toType()

Implementation

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