getTaxClasses method
Returns a list of all WooTaxClass.
Related endpoint: https://woocommerce.github.io/woocommerce-rest-api-docs/#tax-classes.
Implementation
Future<List<WooTaxClass>> getTaxClasses() async {
List<WooTaxClass> taxClasses = [];
_setApiResourceUrl(path: 'taxes/classes');
final response = await get(queryUri.toString());
for (var t in response) {
var tClass = WooTaxClass.fromJson(t);
_printToLog('tax class gotten here : ' + tClass.toString());
taxClasses.add(tClass);
}
return taxClasses;
}