copyWith method

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

Implementation

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