Language.fromJson constructor

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

Creates a Language instance from a JSON map.

Implementation

factory Language.fromJson(Map<String, dynamic> json) {
  return Language(
    code: json['code'] as String,
    name: json['name'] as String,
    nativeName: json['nativeName'] as String,
    countryCode: json['countryCode'] as String?,
  );
}