copyWith method
WebApiModulesSettingsDiscountItemDiscountItem
copyWith({
- String? discountItemId,
- double? discountPercent,
- double? daysPerWeek,
- double? marginPercent,
- double? markupPercent,
- double? dailyRate,
- double? weeklyRate,
- double? week2Rate,
- double? week3Rate,
- double? week4Rate,
- double? week5Rate,
- double? monthlyRate,
- String? orderTypeId,
- String? orderType,
- double? orderTypeOrderBy,
- String? inventoryTypeId,
- String? inventoryType,
- int? inventoryTypeOrderBy,
- String? categoryId,
- String? category,
- double? categoryOrderBy,
- String? subCategoryId,
- String? subCategory,
- double? subCategoryOrderBy,
- String? inventoryId,
- String? iCode,
- String? description,
- String? recType,
- String? classification,
- double? warehouseDailyRate,
- double? warehouseWeeklyRate,
- double? warehouseDefaultDailyRate,
- double? warehouseDefaultWeeklyRate,
- String? discountTemplateId,
- String? auditNote,
- String? recordTitle,
- List<
FwStandardBusinessLogicFwBusinessLogicFieldDefinition> ? fields, - List<
FwStandardDataFwCustomValue> ? custom, - List<
FwStandardDataFwDefaultAttribute> ? defaultFieldAttributes, - List<
FwStandardDataFwTranslatedValue> ? translation,
Implementation
WebApiModulesSettingsDiscountItemDiscountItem copyWith(
{String? discountItemId,
double? discountPercent,
double? daysPerWeek,
double? marginPercent,
double? markupPercent,
double? dailyRate,
double? weeklyRate,
double? week2Rate,
double? week3Rate,
double? week4Rate,
double? week5Rate,
double? monthlyRate,
String? orderTypeId,
String? orderType,
double? orderTypeOrderBy,
String? inventoryTypeId,
String? inventoryType,
int? inventoryTypeOrderBy,
String? categoryId,
String? category,
double? categoryOrderBy,
String? subCategoryId,
String? subCategory,
double? subCategoryOrderBy,
String? inventoryId,
String? iCode,
String? description,
String? recType,
String? classification,
double? warehouseDailyRate,
double? warehouseWeeklyRate,
double? warehouseDefaultDailyRate,
double? warehouseDefaultWeeklyRate,
String? discountTemplateId,
String? auditNote,
String? recordTitle,
List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
List<FwStandardDataFwCustomValue>? custom,
List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
List<FwStandardDataFwTranslatedValue>? translation}) {
return WebApiModulesSettingsDiscountItemDiscountItem(
discountItemId: discountItemId ?? this.discountItemId,
discountPercent: discountPercent ?? this.discountPercent,
daysPerWeek: daysPerWeek ?? this.daysPerWeek,
marginPercent: marginPercent ?? this.marginPercent,
markupPercent: markupPercent ?? this.markupPercent,
dailyRate: dailyRate ?? this.dailyRate,
weeklyRate: weeklyRate ?? this.weeklyRate,
week2Rate: week2Rate ?? this.week2Rate,
week3Rate: week3Rate ?? this.week3Rate,
week4Rate: week4Rate ?? this.week4Rate,
week5Rate: week5Rate ?? this.week5Rate,
monthlyRate: monthlyRate ?? this.monthlyRate,
orderTypeId: orderTypeId ?? this.orderTypeId,
orderType: orderType ?? this.orderType,
orderTypeOrderBy: orderTypeOrderBy ?? this.orderTypeOrderBy,
inventoryTypeId: inventoryTypeId ?? this.inventoryTypeId,
inventoryType: inventoryType ?? this.inventoryType,
inventoryTypeOrderBy: inventoryTypeOrderBy ?? this.inventoryTypeOrderBy,
categoryId: categoryId ?? this.categoryId,
category: category ?? this.category,
categoryOrderBy: categoryOrderBy ?? this.categoryOrderBy,
subCategoryId: subCategoryId ?? this.subCategoryId,
subCategory: subCategory ?? this.subCategory,
subCategoryOrderBy: subCategoryOrderBy ?? this.subCategoryOrderBy,
inventoryId: inventoryId ?? this.inventoryId,
iCode: iCode ?? this.iCode,
description: description ?? this.description,
recType: recType ?? this.recType,
classification: classification ?? this.classification,
warehouseDailyRate: warehouseDailyRate ?? this.warehouseDailyRate,
warehouseWeeklyRate: warehouseWeeklyRate ?? this.warehouseWeeklyRate,
warehouseDefaultDailyRate:
warehouseDefaultDailyRate ?? this.warehouseDefaultDailyRate,
warehouseDefaultWeeklyRate:
warehouseDefaultWeeklyRate ?? this.warehouseDefaultWeeklyRate,
discountTemplateId: discountTemplateId ?? this.discountTemplateId,
auditNote: auditNote ?? this.auditNote,
recordTitle: recordTitle ?? this.recordTitle,
fields: fields ?? this.fields,
custom: custom ?? this.custom,
defaultFieldAttributes:
defaultFieldAttributes ?? this.defaultFieldAttributes,
translation: translation ?? this.translation);
}