fromString static method
ENTER A STRING AND RETURN THE LANGUAGE OBJECT
- "es" = Spanish Language
- "en" = English Language
- "as" = Arabic Language
Implementation
static VideoViewerLanguage fromString(String language) {
if (language == "es") return es;
if (language == "ar") return ar;
return en;
}