listCurrencies method
List Currencies
List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.
Implementation
Future<models.CurrencyList> listCurrencies() async {
const String path = '/locale/currencies';
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.CurrencyList.fromMap(res.data);
}