copyWithWrapped method

WebApiModulesWarehouseCheckOutDecreaseOrderQuantityRequest copyWithWrapped({
  1. Wrapped<String?>? orderId,
  2. Wrapped<String?>? orderItemId,
  3. Wrapped<String?>? inventoryId,
  4. Wrapped<String?>? warehouseId,
  5. Wrapped<int?>? quantity,
  6. Wrapped<bool?>? isInternal,
  7. Wrapped<String?>? internalPurchaseOrderId,
  8. Wrapped<String?>? externalOrderId,
})

Implementation

WebApiModulesWarehouseCheckOutDecreaseOrderQuantityRequest copyWithWrapped({
  Wrapped<String?>? orderId,
  Wrapped<String?>? orderItemId,
  Wrapped<String?>? inventoryId,
  Wrapped<String?>? warehouseId,
  Wrapped<int?>? quantity,
  Wrapped<bool?>? isInternal,
  Wrapped<String?>? internalPurchaseOrderId,
  Wrapped<String?>? externalOrderId,
}) {
  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),
    isInternal: (isInternal != null ? isInternal.value : this.isInternal),
    internalPurchaseOrderId: (internalPurchaseOrderId != null
        ? internalPurchaseOrderId.value
        : this.internalPurchaseOrderId),
    externalOrderId: (externalOrderId != null
        ? externalOrderId.value
        : this.externalOrderId),
  );
}