listContinents method

Future<ContinentList> listContinents()

List continents

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

Implementation

Future<models.ContinentList> listContinents() async {
  const String apiPath = '/locale/continents';

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