listCountriesEU method

Future<CountryList> listCountriesEU()

List EU countries

List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.

Implementation

Future<models.CountryList> listCountriesEU() async {
  const String apiPath = '/locale/countries/eu';

  final Map<String, dynamic> apiParams = {};

  final Map<String, String> apiHeaders = {
    'content-type': 'application/json',
  };

  final res = await client.call(HttpMethod.get,
      path: apiPath, params: apiParams, headers: apiHeaders);

  return models.CountryList.fromMap(res.data);
}