copyWithWrapped method

WebApiModulesSettingsDiscountTemplateSettingsDiscountTemplateDiscountTemplate copyWithWrapped({
  1. Wrapped<String?>? discountTemplateId,
  2. Wrapped<String?>? discountTemplate,
  3. Wrapped<String?>? officeLocationId,
  4. Wrapped<String?>? officeLocation,
  5. Wrapped<bool?>? isCompany,
  6. Wrapped<bool?>? rental,
  7. Wrapped<bool?>? sales,
  8. Wrapped<bool?>? labor,
  9. Wrapped<bool?>? misc,
  10. Wrapped<bool?>? space,
  11. Wrapped<double?>? rentalDiscountPercent,
  12. Wrapped<double?>? rentalDaysPerWeek,
  13. Wrapped<double?>? salesDiscountPercent,
  14. Wrapped<double?>? spaceDiscountPercent,
  15. Wrapped<String?>? rentalAsOf,
  16. Wrapped<String?>? salesAsOf,
  17. Wrapped<String?>? laborAsOf,
  18. Wrapped<String?>? miscAsOf,
  19. Wrapped<String?>? spaceAsOf,
  20. Wrapped<double?>? spaceDaysPerWeek,
  21. Wrapped<String?>? companyId,
  22. Wrapped<bool?>? applyDiscountToCustomRate,
  23. Wrapped<bool?>? inactive,
  24. Wrapped<String?>? dateStamp,
  25. Wrapped<String?>? auditNote,
  26. Wrapped<String?>? recordTitle,
  27. Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>? fields,
  28. Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
  29. Wrapped<List<FwStandardDataFwDefaultAttribute>?>? defaultFieldAttributes,
  30. Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation,
})

Implementation

WebApiModulesSettingsDiscountTemplateSettingsDiscountTemplateDiscountTemplate
    copyWithWrapped(
        {Wrapped<String?>? discountTemplateId,
        Wrapped<String?>? discountTemplate,
        Wrapped<String?>? officeLocationId,
        Wrapped<String?>? officeLocation,
        Wrapped<bool?>? isCompany,
        Wrapped<bool?>? rental,
        Wrapped<bool?>? sales,
        Wrapped<bool?>? labor,
        Wrapped<bool?>? misc,
        Wrapped<bool?>? space,
        Wrapped<double?>? rentalDiscountPercent,
        Wrapped<double?>? rentalDaysPerWeek,
        Wrapped<double?>? salesDiscountPercent,
        Wrapped<double?>? spaceDiscountPercent,
        Wrapped<String?>? rentalAsOf,
        Wrapped<String?>? salesAsOf,
        Wrapped<String?>? laborAsOf,
        Wrapped<String?>? miscAsOf,
        Wrapped<String?>? spaceAsOf,
        Wrapped<double?>? spaceDaysPerWeek,
        Wrapped<String?>? companyId,
        Wrapped<bool?>? applyDiscountToCustomRate,
        Wrapped<bool?>? inactive,
        Wrapped<String?>? dateStamp,
        Wrapped<String?>? auditNote,
        Wrapped<String?>? recordTitle,
        Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>?
            fields,
        Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
        Wrapped<List<FwStandardDataFwDefaultAttribute>?>?
            defaultFieldAttributes,
        Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation}) {
  return WebApiModulesSettingsDiscountTemplateSettingsDiscountTemplateDiscountTemplate(
      discountTemplateId: (discountTemplateId != null
          ? discountTemplateId.value
          : this.discountTemplateId),
      discountTemplate: (discountTemplate != null
          ? discountTemplate.value
          : this.discountTemplate),
      officeLocationId: (officeLocationId != null
          ? officeLocationId.value
          : this.officeLocationId),
      officeLocation: (officeLocation != null
          ? officeLocation.value
          : this.officeLocation),
      isCompany: (isCompany != null ? isCompany.value : this.isCompany),
      rental: (rental != null ? rental.value : this.rental),
      sales: (sales != null ? sales.value : this.sales),
      labor: (labor != null ? labor.value : this.labor),
      misc: (misc != null ? misc.value : this.misc),
      space: (space != null ? space.value : this.space),
      rentalDiscountPercent: (rentalDiscountPercent != null
          ? rentalDiscountPercent.value
          : this.rentalDiscountPercent),
      rentalDaysPerWeek: (rentalDaysPerWeek != null
          ? rentalDaysPerWeek.value
          : this.rentalDaysPerWeek),
      salesDiscountPercent: (salesDiscountPercent != null
          ? salesDiscountPercent.value
          : this.salesDiscountPercent),
      spaceDiscountPercent: (spaceDiscountPercent != null
          ? spaceDiscountPercent.value
          : this.spaceDiscountPercent),
      rentalAsOf: (rentalAsOf != null ? rentalAsOf.value : this.rentalAsOf),
      salesAsOf: (salesAsOf != null ? salesAsOf.value : this.salesAsOf),
      laborAsOf: (laborAsOf != null ? laborAsOf.value : this.laborAsOf),
      miscAsOf: (miscAsOf != null ? miscAsOf.value : this.miscAsOf),
      spaceAsOf: (spaceAsOf != null ? spaceAsOf.value : this.spaceAsOf),
      spaceDaysPerWeek: (spaceDaysPerWeek != null
          ? spaceDaysPerWeek.value
          : this.spaceDaysPerWeek),
      companyId: (companyId != null ? companyId.value : this.companyId),
      applyDiscountToCustomRate: (applyDiscountToCustomRate != null
          ? applyDiscountToCustomRate.value
          : this.applyDiscountToCustomRate),
      inactive: (inactive != null ? inactive.value : this.inactive),
      dateStamp: (dateStamp != null ? dateStamp.value : this.dateStamp),
      auditNote: (auditNote != null ? auditNote.value : this.auditNote),
      recordTitle:
          (recordTitle != null ? recordTitle.value : this.recordTitle),
      fields: (fields != null ? fields.value : this.fields),
      custom: (custom != null ? custom.value : this.custom),
      defaultFieldAttributes: (defaultFieldAttributes != null
          ? defaultFieldAttributes.value
          : this.defaultFieldAttributes),
      translation:
          (translation != null ? translation.value : this.translation));
}