copyWithWrapped method

WebApiModulesSettingsInventorySettingsStorefrontUpdateCatalogItemPercentRequest copyWithWrapped({
  1. Wrapped<int?>? onlineCatalogItemId,
  2. Wrapped<double?>? ownedQuantityPercent,
})

Implementation

WebApiModulesSettingsInventorySettingsStorefrontUpdateCatalogItemPercentRequest
copyWithWrapped({
  Wrapped<int?>? onlineCatalogItemId,
  Wrapped<double?>? ownedQuantityPercent,
}) {
  return WebApiModulesSettingsInventorySettingsStorefrontUpdateCatalogItemPercentRequest(
    onlineCatalogItemId: (onlineCatalogItemId != null
        ? onlineCatalogItemId.value
        : this.onlineCatalogItemId),
    ownedQuantityPercent: (ownedQuantityPercent != null
        ? ownedQuantityPercent.value
        : this.ownedQuantityPercent),
  );
}