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