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 {
  const String path = '/locale/countries/phones';

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

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

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

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