copyWith method

WebApiModulesSettingsDiscountItemDiscountItem copyWith({
  1. String? discountItemId,
  2. double? discountPercent,
  3. double? daysPerWeek,
  4. double? marginPercent,
  5. double? markupPercent,
  6. double? dailyRate,
  7. double? weeklyRate,
  8. double? week2Rate,
  9. double? week3Rate,
  10. double? week4Rate,
  11. double? week5Rate,
  12. double? monthlyRate,
  13. String? orderTypeId,
  14. String? orderType,
  15. double? orderTypeOrderBy,
  16. String? inventoryTypeId,
  17. String? inventoryType,
  18. int? inventoryTypeOrderBy,
  19. String? categoryId,
  20. String? category,
  21. double? categoryOrderBy,
  22. String? subCategoryId,
  23. String? subCategory,
  24. double? subCategoryOrderBy,
  25. String? inventoryId,
  26. String? iCode,
  27. String? description,
  28. String? recType,
  29. String? classification,
  30. double? warehouseDailyRate,
  31. double? warehouseWeeklyRate,
  32. double? warehouseDefaultDailyRate,
  33. double? warehouseDefaultWeeklyRate,
  34. String? discountTemplateId,
  35. String? auditNote,
  36. String? recordTitle,
  37. dynamic urlIdentifier,
  38. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  39. List<FwStandardDataFwCustomValue>? custom,
  40. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  41. FwStandardBusinessLogicFwBusinessLogic? original,
  42. List<FwStandardDataFwTranslatedValue>? translation,
  43. bool? hasImport,
  44. bool? hasDocuments,
  45. String? createdByUserId,
  46. String? createdByUserName,
  47. String? createdDateTime,
  48. String? modifiedByUserId,
  49. String? modifiedByUserName,
  50. String? modifiedDateTime,
})

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