copyWithWrapped method

WebApiModulesInventoryInventoryRetireInventoryRequest copyWithWrapped({
  1. Wrapped<String?>? inventoryId,
  2. Wrapped<String?>? warehouseId,
  3. Wrapped<String?>? itemId,
  4. Wrapped<String?>? retiredReasonId,
  5. Wrapped<String?>? notes,
  6. Wrapped<double?>? quantity,
  7. Wrapped<bool?>? changeICode,
  8. Wrapped<String?>? consignorId,
  9. Wrapped<String?>? consignorAgreementId,
  10. Wrapped<bool?>? completeRepair,
  11. Wrapped<String?>? completeRepairId,
})

Implementation

WebApiModulesInventoryInventoryRetireInventoryRequest copyWithWrapped({
  Wrapped<String?>? inventoryId,
  Wrapped<String?>? warehouseId,
  Wrapped<String?>? itemId,
  Wrapped<String?>? retiredReasonId,
  Wrapped<String?>? notes,
  Wrapped<double?>? quantity,
  Wrapped<bool?>? changeICode,
  Wrapped<String?>? consignorId,
  Wrapped<String?>? consignorAgreementId,
  Wrapped<bool?>? completeRepair,
  Wrapped<String?>? completeRepairId,
}) {
  return WebApiModulesInventoryInventoryRetireInventoryRequest(
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    itemId: (itemId != null ? itemId.value : this.itemId),
    retiredReasonId: (retiredReasonId != null
        ? retiredReasonId.value
        : this.retiredReasonId),
    notes: (notes != null ? notes.value : this.notes),
    quantity: (quantity != null ? quantity.value : this.quantity),
    changeICode: (changeICode != null ? changeICode.value : this.changeICode),
    consignorId: (consignorId != null ? consignorId.value : this.consignorId),
    consignorAgreementId: (consignorAgreementId != null
        ? consignorAgreementId.value
        : this.consignorAgreementId),
    completeRepair: (completeRepair != null
        ? completeRepair.value
        : this.completeRepair),
    completeRepairId: (completeRepairId != null
        ? completeRepairId.value
        : this.completeRepairId),
  );
}