copyWith method
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,
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);
}