copyWithWrapped method

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

Implementation

WebApiModulesSettingsDiscountItemDiscountItem copyWithWrapped({
  Wrapped<String?>? discountItemId,
  Wrapped<double?>? discountPercent,
  Wrapped<double?>? daysPerWeek,
  Wrapped<double?>? marginPercent,
  Wrapped<double?>? markupPercent,
  Wrapped<double?>? dailyRate,
  Wrapped<double?>? weeklyRate,
  Wrapped<double?>? week2Rate,
  Wrapped<double?>? week3Rate,
  Wrapped<double?>? week4Rate,
  Wrapped<double?>? week5Rate,
  Wrapped<double?>? monthlyRate,
  Wrapped<String?>? orderTypeId,
  Wrapped<String?>? orderType,
  Wrapped<double?>? orderTypeOrderBy,
  Wrapped<String?>? inventoryTypeId,
  Wrapped<String?>? inventoryType,
  Wrapped<int?>? inventoryTypeOrderBy,
  Wrapped<String?>? categoryId,
  Wrapped<String?>? category,
  Wrapped<double?>? categoryOrderBy,
  Wrapped<String?>? subCategoryId,
  Wrapped<String?>? subCategory,
  Wrapped<double?>? subCategoryOrderBy,
  Wrapped<String?>? inventoryId,
  Wrapped<String?>? iCode,
  Wrapped<String?>? description,
  Wrapped<String?>? recType,
  Wrapped<String?>? classification,
  Wrapped<double?>? warehouseDailyRate,
  Wrapped<double?>? warehouseWeeklyRate,
  Wrapped<double?>? warehouseDefaultDailyRate,
  Wrapped<double?>? warehouseDefaultWeeklyRate,
  Wrapped<String?>? discountTemplateId,
  Wrapped<String?>? auditNote,
  Wrapped<String?>? recordTitle,
  Wrapped<dynamic>? urlIdentifier,
  Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>?
  fields,
  Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
  Wrapped<List<FwStandardDataFwDefaultAttribute>?>? defaultFieldAttributes,
  Wrapped<FwStandardBusinessLogicFwBusinessLogic?>? original,
  Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation,
  Wrapped<bool?>? hasImport,
  Wrapped<String?>? createdByUserId,
  Wrapped<String?>? createdByUserName,
  Wrapped<String?>? createdDateTime,
  Wrapped<String?>? modifiedByUserId,
  Wrapped<String?>? modifiedByUserName,
  Wrapped<String?>? modifiedDateTime,
}) {
  return WebApiModulesSettingsDiscountItemDiscountItem(
    discountItemId: (discountItemId != null
        ? discountItemId.value
        : this.discountItemId),
    discountPercent: (discountPercent != null
        ? discountPercent.value
        : this.discountPercent),
    daysPerWeek: (daysPerWeek != null ? daysPerWeek.value : this.daysPerWeek),
    marginPercent: (marginPercent != null
        ? marginPercent.value
        : this.marginPercent),
    markupPercent: (markupPercent != null
        ? markupPercent.value
        : this.markupPercent),
    dailyRate: (dailyRate != null ? dailyRate.value : this.dailyRate),
    weeklyRate: (weeklyRate != null ? weeklyRate.value : this.weeklyRate),
    week2Rate: (week2Rate != null ? week2Rate.value : this.week2Rate),
    week3Rate: (week3Rate != null ? week3Rate.value : this.week3Rate),
    week4Rate: (week4Rate != null ? week4Rate.value : this.week4Rate),
    week5Rate: (week5Rate != null ? week5Rate.value : this.week5Rate),
    monthlyRate: (monthlyRate != null ? monthlyRate.value : this.monthlyRate),
    orderTypeId: (orderTypeId != null ? orderTypeId.value : this.orderTypeId),
    orderType: (orderType != null ? orderType.value : this.orderType),
    orderTypeOrderBy: (orderTypeOrderBy != null
        ? orderTypeOrderBy.value
        : this.orderTypeOrderBy),
    inventoryTypeId: (inventoryTypeId != null
        ? inventoryTypeId.value
        : this.inventoryTypeId),
    inventoryType: (inventoryType != null
        ? inventoryType.value
        : this.inventoryType),
    inventoryTypeOrderBy: (inventoryTypeOrderBy != null
        ? inventoryTypeOrderBy.value
        : this.inventoryTypeOrderBy),
    categoryId: (categoryId != null ? categoryId.value : this.categoryId),
    category: (category != null ? category.value : this.category),
    categoryOrderBy: (categoryOrderBy != null
        ? categoryOrderBy.value
        : this.categoryOrderBy),
    subCategoryId: (subCategoryId != null
        ? subCategoryId.value
        : this.subCategoryId),
    subCategory: (subCategory != null ? subCategory.value : this.subCategory),
    subCategoryOrderBy: (subCategoryOrderBy != null
        ? subCategoryOrderBy.value
        : this.subCategoryOrderBy),
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    iCode: (iCode != null ? iCode.value : this.iCode),
    description: (description != null ? description.value : this.description),
    recType: (recType != null ? recType.value : this.recType),
    classification: (classification != null
        ? classification.value
        : this.classification),
    warehouseDailyRate: (warehouseDailyRate != null
        ? warehouseDailyRate.value
        : this.warehouseDailyRate),
    warehouseWeeklyRate: (warehouseWeeklyRate != null
        ? warehouseWeeklyRate.value
        : this.warehouseWeeklyRate),
    warehouseDefaultDailyRate: (warehouseDefaultDailyRate != null
        ? warehouseDefaultDailyRate.value
        : this.warehouseDefaultDailyRate),
    warehouseDefaultWeeklyRate: (warehouseDefaultWeeklyRate != null
        ? warehouseDefaultWeeklyRate.value
        : this.warehouseDefaultWeeklyRate),
    discountTemplateId: (discountTemplateId != null
        ? discountTemplateId.value
        : this.discountTemplateId),
    auditNote: (auditNote != null ? auditNote.value : this.auditNote),
    recordTitle: (recordTitle != null ? recordTitle.value : this.recordTitle),
    urlIdentifier: (urlIdentifier != null
        ? urlIdentifier.value
        : this.urlIdentifier),
    fields: (fields != null ? fields.value : this.fields),
    custom: (custom != null ? custom.value : this.custom),
    defaultFieldAttributes: (defaultFieldAttributes != null
        ? defaultFieldAttributes.value
        : this.defaultFieldAttributes),
    original: (original != null ? original.value : this.original),
    translation: (translation != null ? translation.value : this.translation),
    hasImport: (hasImport != null ? hasImport.value : this.hasImport),
    createdByUserId: (createdByUserId != null
        ? createdByUserId.value
        : this.createdByUserId),
    createdByUserName: (createdByUserName != null
        ? createdByUserName.value
        : this.createdByUserName),
    createdDateTime: (createdDateTime != null
        ? createdDateTime.value
        : this.createdDateTime),
    modifiedByUserId: (modifiedByUserId != null
        ? modifiedByUserId.value
        : this.modifiedByUserId),
    modifiedByUserName: (modifiedByUserName != null
        ? modifiedByUserName.value
        : this.modifiedByUserName),
    modifiedDateTime: (modifiedDateTime != null
        ? modifiedDateTime.value
        : this.modifiedDateTime),
  );
}