CountriesModel.fromJson constructor
Creates a CountriesModel instance from a JSON map.
The json
parameter must contain keys corresponding to the fields
of the CountriesModel.
Implementation
factory CountriesModel.fromJson(Map<String, dynamic> json) {
return CountriesModel(
id: json["id"],
name: json["name"],
flag: json["flag"],
code: json["code"],
dialCode: json["dial_code"],
pattern: json["pattern"],
limit: json["limit"],
);
}