copyWithWrapped method

WebApiModulesIntegrationsStorefrontQuoteRequestPackageItem copyWithWrapped({
  1. Wrapped<String>? inventoryId,
  2. Wrapped<String>? inventoryPackageInventoryId,
  3. Wrapped<double>? qty,
})

Implementation

WebApiModulesIntegrationsStorefrontQuoteRequestPackageItem copyWithWrapped({
  Wrapped<String>? inventoryId,
  Wrapped<String>? inventoryPackageInventoryId,
  Wrapped<double>? qty,
}) {
  return WebApiModulesIntegrationsStorefrontQuoteRequestPackageItem(
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    inventoryPackageInventoryId: (inventoryPackageInventoryId != null
        ? inventoryPackageInventoryId.value
        : this.inventoryPackageInventoryId),
    qty: (qty != null ? qty.value : this.qty),
  );
}