toLanguageCode method

LanguageCode toLanguageCode()

Implementation

LanguageCode toLanguageCode() {
  switch (this) {
    case 'en':
      return LanguageCode.en;
  }
  throw Exception('$this is not known in enum LanguageCode');
}