TranslitLanguage.fromJson constructor

TranslitLanguage.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TranslitLanguage.fromJson(Map<String, dynamic> json) =>
    TranslitLanguage(
      code: json['code'],
      name: utf8.decode(json['name'].codeUnits),
      nativeName: utf8.decode(json['nativeName'].codeUnits),
      scripts: (json['scripts'] as List<dynamic>)
          .map((e) => ScriptLanguage.fromJson(e))
          .toList(),
    );