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. dynamic urlIdentifier,
  28. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  29. List<FwStandardDataFwCustomValue>? custom,
  30. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  31. FwStandardBusinessLogicFwBusinessLogic? original,
  32. List<FwStandardDataFwTranslatedValue>? translation,
  33. bool? hasImport,
  34. bool? hasDocuments,
  35. String? createdByUserId,
  36. String? createdByUserName,
  37. String? createdDateTime,
  38. String? modifiedByUserId,
  39. String? modifiedByUserName,
  40. String? modifiedDateTime,
})

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,
  dynamic urlIdentifier,
  List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  List<FwStandardDataFwCustomValue>? custom,
  List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  FwStandardBusinessLogicFwBusinessLogic? original,
  List<FwStandardDataFwTranslatedValue>? translation,
  bool? hasImport,
  bool? hasDocuments,
  String? createdByUserId,
  String? createdByUserName,
  String? createdDateTime,
  String? modifiedByUserId,
  String? modifiedByUserName,
  String? modifiedDateTime,
}) {
  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,
    urlIdentifier: urlIdentifier ?? this.urlIdentifier,
    fields: fields ?? this.fields,
    custom: custom ?? this.custom,
    defaultFieldAttributes:
        defaultFieldAttributes ?? this.defaultFieldAttributes,
    original: original ?? this.original,
    translation: translation ?? this.translation,
    hasImport: hasImport ?? this.hasImport,
    hasDocuments: hasDocuments ?? this.hasDocuments,
    createdByUserId: createdByUserId ?? this.createdByUserId,
    createdByUserName: createdByUserName ?? this.createdByUserName,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    modifiedByUserId: modifiedByUserId ?? this.modifiedByUserId,
    modifiedByUserName: modifiedByUserName ?? this.modifiedByUserName,
    modifiedDateTime: modifiedDateTime ?? this.modifiedDateTime,
  );
}