toLanguageType method

LanguageType toLanguageType()

Implementation

LanguageType toLanguageType() {
  switch (this) {
    case 'JAVA':
      return LanguageType.java;
    case 'PYTHON':
      return LanguageType.python;
    case 'NODE_JS':
      return LanguageType.nodeJs;
    case 'RUBY':
      return LanguageType.ruby;
    case 'GOLANG':
      return LanguageType.golang;
    case 'DOCKER':
      return LanguageType.docker;
    case 'ANDROID':
      return LanguageType.android;
    case 'DOTNET':
      return LanguageType.dotnet;
    case 'BASE':
      return LanguageType.base;
    case 'PHP':
      return LanguageType.php;
  }
  throw Exception('$this is not known in enum LanguageType');
}