AiutaLanguage.fromJson constructor
Creates a language configuration from the given JSON map.
Implementation
factory AiutaLanguage.fromJson(Map<String, dynamic> json) {
switch (json['mode'] as String) {
case 'standard':
return StandardLanguage.fromJson(json);
case 'custom':
return CustomLanguage.fromJson(json);
default:
throw Exception('Unknown language type');
}
}