copyWith method

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

Implementation

WebApiModulesWarehouseCheckOutDecreaseOrderQuantityRequest copyWith(
    {String? orderId,
    String? orderItemId,
    String? inventoryId,
    String? warehouseId,
    int? quantity,
    bool? isInternal,
    String? internalPurchaseOrderId,
    String? externalOrderId}) {
  return WebApiModulesWarehouseCheckOutDecreaseOrderQuantityRequest(
      orderId: orderId ?? this.orderId,
      orderItemId: orderItemId ?? this.orderItemId,
      inventoryId: inventoryId ?? this.inventoryId,
      warehouseId: warehouseId ?? this.warehouseId,
      quantity: quantity ?? this.quantity,
      isInternal: isInternal ?? this.isInternal,
      internalPurchaseOrderId:
          internalPurchaseOrderId ?? this.internalPurchaseOrderId,
      externalOrderId: externalOrderId ?? this.externalOrderId);
}