getTaxRateById method

Future<WooTaxRate> getTaxRateById(
  1. int id
)

Returns a WooTaxRate object matching the specified id.

Implementation

Future<WooTaxRate> getTaxRateById(int id) async {
  _setApiResourceUrl(path: 'taxes/' + id.toString());
  final response = await get(queryUri.toString());
  return WooTaxRate.fromJson(response);
}