Continents.fromJson constructor

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

Implementation

Continents.fromJson(Map<String, dynamic> json) {
  code = json["code"];
  name = json["name"];
  countries =
      List<Country>.from(json["countries"].map((x) => Country.fromJson(x)));
  links = Links.fromJson(json["_links"]);
}