getTaxClasses method

Future<List<WooTaxClass>> getTaxClasses()

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;
}