listCountriesPhones method

Future<PhoneList> listCountriesPhones()

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 apiPath = '/locale/countries/phones';

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

  final Map<String, String> apiHeaders = {};

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

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