toServerType method

ServerType toServerType()

Implementation

ServerType toServerType() {
  switch (this) {
    case 'GITHUB':
      return ServerType.github;
    case 'BITBUCKET':
      return ServerType.bitbucket;
    case 'GITHUB_ENTERPRISE':
      return ServerType.githubEnterprise;
  }
  throw Exception('$this is not known in enum ServerType');
}