copyWithWrapped method

WebApiModulesInventoryRepairCancelRepairRequest copyWithWrapped({
  1. Wrapped<String?>? repairId,
  2. Wrapped<String?>? contractId,
  3. Wrapped<String?>? orderId,
  4. Wrapped<String?>? orderItemId,
  5. Wrapped<String?>? inventoryId,
  6. Wrapped<String?>? assetId,
  7. Wrapped<String?>? consignorId,
  8. Wrapped<String?>? consignorAgreementId,
  9. Wrapped<int?>? quantity,
})

Implementation

WebApiModulesInventoryRepairCancelRepairRequest copyWithWrapped({
  Wrapped<String?>? repairId,
  Wrapped<String?>? contractId,
  Wrapped<String?>? orderId,
  Wrapped<String?>? orderItemId,
  Wrapped<String?>? inventoryId,
  Wrapped<String?>? assetId,
  Wrapped<String?>? consignorId,
  Wrapped<String?>? consignorAgreementId,
  Wrapped<int?>? quantity,
}) {
  return WebApiModulesInventoryRepairCancelRepairRequest(
    repairId: (repairId != null ? repairId.value : this.repairId),
    contractId: (contractId != null ? contractId.value : this.contractId),
    orderId: (orderId != null ? orderId.value : this.orderId),
    orderItemId: (orderItemId != null ? orderItemId.value : this.orderItemId),
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    assetId: (assetId != null ? assetId.value : this.assetId),
    consignorId: (consignorId != null ? consignorId.value : this.consignorId),
    consignorAgreementId: (consignorAgreementId != null
        ? consignorAgreementId.value
        : this.consignorAgreementId),
    quantity: (quantity != null ? quantity.value : this.quantity),
  );
}