copyWithWrapped method

WebApiModulesWarehouseCheckOutDecreaseOrderQuantityRequest copyWithWrapped({
  1. Wrapped<String?>? orderId,
  2. Wrapped<String?>? orderItemId,
  3. Wrapped<String?>? inventoryId,
  4. Wrapped<String?>? warehouseId,
  5. Wrapped<int?>? quantity,
})

Implementation

WebApiModulesWarehouseCheckOutDecreaseOrderQuantityRequest copyWithWrapped({
  Wrapped<String?>? orderId,
  Wrapped<String?>? orderItemId,
  Wrapped<String?>? inventoryId,
  Wrapped<String?>? warehouseId,
  Wrapped<int?>? quantity,
}) {
  return WebApiModulesWarehouseCheckOutDecreaseOrderQuantityRequest(
    orderId: (orderId != null ? orderId.value : this.orderId),
    orderItemId: (orderItemId != null ? orderItemId.value : this.orderItemId),
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    quantity: (quantity != null ? quantity.value : this.quantity),
  );
}