CountryData.fromJson constructor

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

Converts a JSON object into a CountryData instance.

Implementation

factory CountryData.fromJson(Map<String, dynamic> json) => CountryData(
      name: json["name"],
      dialCode: json["dial_code"],
      code: json["code"],
    );