update method

Future<ResponseItemDTO> update({
  1. StoreShipmentMethodBody? shipmentMethod,
  2. String? id,
})

Implementation

Future<ResponseItemDTO> update(
    {StoreShipmentMethodBody? shipmentMethod, String? id}) async {
  final response = await _http!.request(
    requestType: RequestType.put,
    path: '/dashboard/stores/shipment_methods',
    param: id,
    data: shipmentMethod,
  );

  return ResponseItemDTO(
    response: response,
  );
}