Language.fromJson constructor

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

Implementation

factory Language.fromJson(Map<String, dynamic> json) => Language(
      code: json['code'],
      name: utf8.decode(json['name'].codeUnits),
      nativeName: utf8.decode(json['nativeName'].codeUnits),
      scriptDirection: ScriptDirection.fromString(json['dir']),
    );