getShippingMethodById method
Returns a WooShippingMethod object with the specified id
.
Implementation
Future<WooShippingMethod> getShippingMethodById(int id) async {
WooShippingMethod shippingMethod;
_setApiResourceUrl(path: 'shipping_methods/' + id.toString());
final response = await get(queryUri.toString());
shippingMethod = WooShippingMethod.fromJson(response);
return shippingMethod;
}