listContinents method
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 path = '/locale/continents';
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.ContinentList.fromMap(res.data);
}