copyWithWrapped method

WebApiModulesWarehouseExchangeExchangeItemInResponse copyWithWrapped({
  1. Wrapped<String?>? contractId,
  2. Wrapped<String?>? inCode,
  3. Wrapped<int?>? quantity,
  4. Wrapped<String?>? orderId,
  5. Wrapped<String?>? orderNumber,
  6. Wrapped<String?>? orderDescription,
  7. Wrapped<String?>? dealId,
  8. Wrapped<String?>? deal,
  9. Wrapped<String?>? departmentId,
  10. Wrapped<WebApiModulesWarehouseExchangeExchangeItemStatus?>? itemStatus,
  11. Wrapped<int?>? status,
  12. Wrapped<bool?>? success,
  13. Wrapped<String?>? msg,
})

Implementation

WebApiModulesWarehouseExchangeExchangeItemInResponse copyWithWrapped({
  Wrapped<String?>? contractId,
  Wrapped<String?>? inCode,
  Wrapped<int?>? quantity,
  Wrapped<String?>? orderId,
  Wrapped<String?>? orderNumber,
  Wrapped<String?>? orderDescription,
  Wrapped<String?>? dealId,
  Wrapped<String?>? deal,
  Wrapped<String?>? departmentId,
  Wrapped<WebApiModulesWarehouseExchangeExchangeItemStatus?>? itemStatus,
  Wrapped<int?>? status,
  Wrapped<bool?>? success,
  Wrapped<String?>? msg,
}) {
  return WebApiModulesWarehouseExchangeExchangeItemInResponse(
    contractId: (contractId != null ? contractId.value : this.contractId),
    inCode: (inCode != null ? inCode.value : this.inCode),
    quantity: (quantity != null ? quantity.value : this.quantity),
    orderId: (orderId != null ? orderId.value : this.orderId),
    orderNumber: (orderNumber != null ? orderNumber.value : this.orderNumber),
    orderDescription: (orderDescription != null
        ? orderDescription.value
        : this.orderDescription),
    dealId: (dealId != null ? dealId.value : this.dealId),
    deal: (deal != null ? deal.value : this.deal),
    departmentId: (departmentId != null
        ? departmentId.value
        : this.departmentId),
    itemStatus: (itemStatus != null ? itemStatus.value : this.itemStatus),
    status: (status != null ? status.value : this.status),
    success: (success != null ? success.value : this.success),
    msg: (msg != null ? msg.value : this.msg),
  );
}