CountryList.fromMap constructor

CountryList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory CountryList.fromMap(Map<String, dynamic> map) {
  return CountryList(
    total: map['total'],
    countries:
        List<Country>.from(map['countries'].map((p) => Country.fromMap(p))),
  );
}