Countries.fromJson constructor

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

Implementation

factory Countries.fromJson(Map<String, dynamic> json) => Countries(
      code: json["code"],
      name: json["name"],
      states: List<State>.from(json["states"].map((x) => State.fromJson(x))),
      links: Links.fromJson(json["_links"]),
    );