copyWithWrapped method

WebApiModulesWarehouseExchangeExchangeItemRequest copyWithWrapped({
  1. Wrapped<String?>? contractId,
  2. Wrapped<String?>? orderId,
  3. Wrapped<String?>? dealId,
  4. Wrapped<String?>? departmentId,
  5. Wrapped<String?>? warehouseId,
  6. Wrapped<String?>? inCode,
  7. Wrapped<int?>? quantity,
  8. Wrapped<String?>? outCode,
  9. Wrapped<bool?>? allowCrossICode,
  10. Wrapped<bool?>? completingPending,
})

Implementation

WebApiModulesWarehouseExchangeExchangeItemRequest copyWithWrapped(
    {Wrapped<String?>? contractId,
    Wrapped<String?>? orderId,
    Wrapped<String?>? dealId,
    Wrapped<String?>? departmentId,
    Wrapped<String?>? warehouseId,
    Wrapped<String?>? inCode,
    Wrapped<int?>? quantity,
    Wrapped<String?>? outCode,
    Wrapped<bool?>? allowCrossICode,
    Wrapped<bool?>? completingPending}) {
  return WebApiModulesWarehouseExchangeExchangeItemRequest(
      contractId: (contractId != null ? contractId.value : this.contractId),
      orderId: (orderId != null ? orderId.value : this.orderId),
      dealId: (dealId != null ? dealId.value : this.dealId),
      departmentId:
          (departmentId != null ? departmentId.value : this.departmentId),
      warehouseId:
          (warehouseId != null ? warehouseId.value : this.warehouseId),
      inCode: (inCode != null ? inCode.value : this.inCode),
      quantity: (quantity != null ? quantity.value : this.quantity),
      outCode: (outCode != null ? outCode.value : this.outCode),
      allowCrossICode: (allowCrossICode != null
          ? allowCrossICode.value
          : this.allowCrossICode),
      completingPending: (completingPending != null
          ? completingPending.value
          : this.completingPending));
}