CountriesResponse.fromJson constructor

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

Implementation

factory CountriesResponse.fromJson(Map<String, dynamic> json) =>
    CountriesResponse(
      countries: json["countries"] == null
          ? []
          : List<Country>.from(
              json["countries"]!.map((x) => Country.fromJson(x))),
    );