listCountriesPhones method

Future<PhoneList> listCountriesPhones()

List countries phone codes

List of all countries phone codes. You can use the locale header to get the data in a supported language.

Implementation

Future<models.PhoneList> listCountriesPhones() async {
  final String apiPath = '/locale/countries/phones';

  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.PhoneList.fromMap(res.data);
}