copyWithWrapped method

WebApiModulesIntegrationsStorefrontQuoteRequest copyWithWrapped({
  1. Wrapped<String?>? webCatalogId,
  2. Wrapped<String?>? language,
  3. Wrapped<String>? departmentId,
  4. Wrapped<String>? locationId,
  5. Wrapped<String>? warehouseId,
  6. Wrapped<String?>? dealId,
  7. Wrapped<String?>? quoteDescription,
  8. Wrapped<String?>? jobName,
  9. Wrapped<String>? startDate,
  10. Wrapped<String>? stopDate,
  11. Wrapped<String?>? notes,
  12. Wrapped<List<WebApiModulesIntegrationsStorefrontQuoteRequestItem>>? items,
})

Implementation

WebApiModulesIntegrationsStorefrontQuoteRequest copyWithWrapped({
  Wrapped<String?>? webCatalogId,
  Wrapped<String?>? language,
  Wrapped<String>? departmentId,
  Wrapped<String>? locationId,
  Wrapped<String>? warehouseId,
  Wrapped<String?>? dealId,
  Wrapped<String?>? quoteDescription,
  Wrapped<String?>? jobName,
  Wrapped<String>? startDate,
  Wrapped<String>? stopDate,
  Wrapped<String?>? notes,
  Wrapped<List<WebApiModulesIntegrationsStorefrontQuoteRequestItem>>? items,
}) {
  return WebApiModulesIntegrationsStorefrontQuoteRequest(
    webCatalogId: (webCatalogId != null
        ? webCatalogId.value
        : this.webCatalogId),
    language: (language != null ? language.value : this.language),
    departmentId: (departmentId != null
        ? departmentId.value
        : this.departmentId),
    locationId: (locationId != null ? locationId.value : this.locationId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    dealId: (dealId != null ? dealId.value : this.dealId),
    quoteDescription: (quoteDescription != null
        ? quoteDescription.value
        : this.quoteDescription),
    jobName: (jobName != null ? jobName.value : this.jobName),
    startDate: (startDate != null ? startDate.value : this.startDate),
    stopDate: (stopDate != null ? stopDate.value : this.stopDate),
    notes: (notes != null ? notes.value : this.notes),
    items: (items != null ? items.value : this.items),
  );
}