copyWith method

WebApiModulesIntegrationsStorefrontStorefrontSettings copyWith({
  1. bool? isStorefrontEnabled,
  2. bool? isAnonymousAccessEnabled,
  3. bool? registerEnabled,
  4. bool? separateQuoteRequestsByCatalog,
  5. bool? makeQuoteRequestIntoOrderOnSubmission,
  6. bool? filterCatalogsByLocation,
  7. bool? phoneNoRequiredOnRegistrationForm,
  8. bool? isUniversity,
  9. bool? studentIdRequiredOnRegistrationForm,
  10. double? autoplaySpeed,
  11. bool? autoplayImagesOnLandingPage,
  12. bool? autoplayImagesOnProductBrowser,
  13. bool? autoplayImagesOnProductDetails,
  14. String? imagesTransitionEffect,
  15. String? imagesTransitionSpeed,
  16. bool? homepageShowHeroSection,
  17. WebApiModulesIntegrationsStorefrontStorefrontTranslatedText? homepageHeroSectionHeading1,
  18. WebApiModulesIntegrationsStorefrontStorefrontTranslatedText? homepageHeroSectionHeading2,
  19. WebApiModulesIntegrationsStorefrontStorefrontTranslatedText? homepageHeroSectionHeading3,
  20. String? homepageCatalogItemWidth,
  21. String? homepageCatalogItemHeight,
  22. bool? homepageShowFooter,
  23. WebApiModulesIntegrationsStorefrontStorefrontTranslatedText? homepageFooterText,
  24. bool? landingPageShowCategoryBrowser,
  25. String? landingPageCategoryBrowserItemWidth,
})

Implementation

WebApiModulesIntegrationsStorefrontStorefrontSettings copyWith({
  bool? isStorefrontEnabled,
  bool? isAnonymousAccessEnabled,
  bool? registerEnabled,
  bool? separateQuoteRequestsByCatalog,
  bool? makeQuoteRequestIntoOrderOnSubmission,
  bool? filterCatalogsByLocation,
  bool? phoneNoRequiredOnRegistrationForm,
  bool? isUniversity,
  bool? studentIdRequiredOnRegistrationForm,
  double? autoplaySpeed,
  bool? autoplayImagesOnLandingPage,
  bool? autoplayImagesOnProductBrowser,
  bool? autoplayImagesOnProductDetails,
  String? imagesTransitionEffect,
  String? imagesTransitionSpeed,
  bool? homepageShowHeroSection,
  WebApiModulesIntegrationsStorefrontStorefrontTranslatedText?
  homepageHeroSectionHeading1,
  WebApiModulesIntegrationsStorefrontStorefrontTranslatedText?
  homepageHeroSectionHeading2,
  WebApiModulesIntegrationsStorefrontStorefrontTranslatedText?
  homepageHeroSectionHeading3,
  String? homepageCatalogItemWidth,
  String? homepageCatalogItemHeight,
  bool? homepageShowFooter,
  WebApiModulesIntegrationsStorefrontStorefrontTranslatedText?
  homepageFooterText,
  bool? landingPageShowCategoryBrowser,
  String? landingPageCategoryBrowserItemWidth,
}) {
  return WebApiModulesIntegrationsStorefrontStorefrontSettings(
    isStorefrontEnabled: isStorefrontEnabled ?? this.isStorefrontEnabled,
    isAnonymousAccessEnabled:
        isAnonymousAccessEnabled ?? this.isAnonymousAccessEnabled,
    registerEnabled: registerEnabled ?? this.registerEnabled,
    separateQuoteRequestsByCatalog:
        separateQuoteRequestsByCatalog ?? this.separateQuoteRequestsByCatalog,
    makeQuoteRequestIntoOrderOnSubmission:
        makeQuoteRequestIntoOrderOnSubmission ??
        this.makeQuoteRequestIntoOrderOnSubmission,
    filterCatalogsByLocation:
        filterCatalogsByLocation ?? this.filterCatalogsByLocation,
    phoneNoRequiredOnRegistrationForm:
        phoneNoRequiredOnRegistrationForm ??
        this.phoneNoRequiredOnRegistrationForm,
    isUniversity: isUniversity ?? this.isUniversity,
    studentIdRequiredOnRegistrationForm:
        studentIdRequiredOnRegistrationForm ??
        this.studentIdRequiredOnRegistrationForm,
    autoplaySpeed: autoplaySpeed ?? this.autoplaySpeed,
    autoplayImagesOnLandingPage:
        autoplayImagesOnLandingPage ?? this.autoplayImagesOnLandingPage,
    autoplayImagesOnProductBrowser:
        autoplayImagesOnProductBrowser ?? this.autoplayImagesOnProductBrowser,
    autoplayImagesOnProductDetails:
        autoplayImagesOnProductDetails ?? this.autoplayImagesOnProductDetails,
    imagesTransitionEffect:
        imagesTransitionEffect ?? this.imagesTransitionEffect,
    imagesTransitionSpeed:
        imagesTransitionSpeed ?? this.imagesTransitionSpeed,
    homepageShowHeroSection:
        homepageShowHeroSection ?? this.homepageShowHeroSection,
    homepageHeroSectionHeading1:
        homepageHeroSectionHeading1 ?? this.homepageHeroSectionHeading1,
    homepageHeroSectionHeading2:
        homepageHeroSectionHeading2 ?? this.homepageHeroSectionHeading2,
    homepageHeroSectionHeading3:
        homepageHeroSectionHeading3 ?? this.homepageHeroSectionHeading3,
    homepageCatalogItemWidth:
        homepageCatalogItemWidth ?? this.homepageCatalogItemWidth,
    homepageCatalogItemHeight:
        homepageCatalogItemHeight ?? this.homepageCatalogItemHeight,
    homepageShowFooter: homepageShowFooter ?? this.homepageShowFooter,
    homepageFooterText: homepageFooterText ?? this.homepageFooterText,
    landingPageShowCategoryBrowser:
        landingPageShowCategoryBrowser ?? this.landingPageShowCategoryBrowser,
    landingPageCategoryBrowserItemWidth:
        landingPageCategoryBrowserItemWidth ??
        this.landingPageCategoryBrowserItemWidth,
  );
}