copyWithWrapped method

WebApiModulesSettingsDiscountTemplateSettingsDiscountTemplateDiscountTemplate copyWithWrapped({
  1. Wrapped<String?>? discountTemplateId,
  2. Wrapped<String?>? discountTemplate,
  3. Wrapped<String?>? officeLocationId,
  4. Wrapped<String?>? officeLocation,
  5. Wrapped<bool?>? isCompany,
  6. Wrapped<bool?>? rental,
  7. Wrapped<bool?>? sales,
  8. Wrapped<bool?>? labor,
  9. Wrapped<bool?>? misc,
  10. Wrapped<bool?>? space,
  11. Wrapped<double?>? rentalDiscountPercent,
  12. Wrapped<double?>? rentalDaysPerWeek,
  13. Wrapped<double?>? salesDiscountPercent,
  14. Wrapped<double?>? spaceDiscountPercent,
  15. Wrapped<String?>? rentalAsOf,
  16. Wrapped<String?>? salesAsOf,
  17. Wrapped<String?>? laborAsOf,
  18. Wrapped<String?>? miscAsOf,
  19. Wrapped<String?>? spaceAsOf,
  20. Wrapped<double?>? spaceDaysPerWeek,
  21. Wrapped<String?>? companyId,
  22. Wrapped<bool?>? applyDiscountToCustomRate,
  23. Wrapped<bool?>? inactive,
  24. Wrapped<String?>? dateStamp,
  25. Wrapped<String?>? auditNote,
  26. Wrapped<String?>? recordTitle,
  27. Wrapped? urlIdentifier,
  28. Wrapped<List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>?>? fields,
  29. Wrapped<List<FwStandardDataFwCustomValue>?>? custom,
  30. Wrapped<List<FwStandardDataFwDefaultAttribute>?>? defaultFieldAttributes,
  31. Wrapped<FwStandardBusinessLogicFwBusinessLogic?>? original,
  32. Wrapped<List<FwStandardDataFwTranslatedValue>?>? translation,
  33. Wrapped<bool?>? hasImport,
  34. Wrapped<bool?>? hasDocuments,
  35. Wrapped<String?>? createdByUserId,
  36. Wrapped<String?>? createdByUserName,
  37. Wrapped<String?>? createdDateTime,
  38. Wrapped<String?>? modifiedByUserId,
  39. Wrapped<String?>? modifiedByUserName,
  40. Wrapped<String?>? modifiedDateTime,
})

Implementation

WebApiModulesSettingsDiscountTemplateSettingsDiscountTemplateDiscountTemplate
copyWithWrapped({
  Wrapped<String?>? discountTemplateId,
  Wrapped<String?>? discountTemplate,
  Wrapped<String?>? officeLocationId,
  Wrapped<String?>? officeLocation,
  Wrapped<bool?>? isCompany,
  Wrapped<bool?>? rental,
  Wrapped<bool?>? sales,
  Wrapped<bool?>? labor,
  Wrapped<bool?>? misc,
  Wrapped<bool?>? space,
  Wrapped<double?>? rentalDiscountPercent,
  Wrapped<double?>? rentalDaysPerWeek,
  Wrapped<double?>? salesDiscountPercent,
  Wrapped<double?>? spaceDiscountPercent,
  Wrapped<String?>? rentalAsOf,
  Wrapped<String?>? salesAsOf,
  Wrapped<String?>? laborAsOf,
  Wrapped<String?>? miscAsOf,
  Wrapped<String?>? spaceAsOf,
  Wrapped<double?>? spaceDaysPerWeek,
  Wrapped<String?>? companyId,
  Wrapped<bool?>? applyDiscountToCustomRate,
  Wrapped<bool?>? inactive,
  Wrapped<String?>? dateStamp,
  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<bool?>? hasDocuments,
  Wrapped<String?>? createdByUserId,
  Wrapped<String?>? createdByUserName,
  Wrapped<String?>? createdDateTime,
  Wrapped<String?>? modifiedByUserId,
  Wrapped<String?>? modifiedByUserName,
  Wrapped<String?>? modifiedDateTime,
}) {
  return WebApiModulesSettingsDiscountTemplateSettingsDiscountTemplateDiscountTemplate(
    discountTemplateId: (discountTemplateId != null
        ? discountTemplateId.value
        : this.discountTemplateId),
    discountTemplate: (discountTemplate != null
        ? discountTemplate.value
        : this.discountTemplate),
    officeLocationId: (officeLocationId != null
        ? officeLocationId.value
        : this.officeLocationId),
    officeLocation: (officeLocation != null
        ? officeLocation.value
        : this.officeLocation),
    isCompany: (isCompany != null ? isCompany.value : this.isCompany),
    rental: (rental != null ? rental.value : this.rental),
    sales: (sales != null ? sales.value : this.sales),
    labor: (labor != null ? labor.value : this.labor),
    misc: (misc != null ? misc.value : this.misc),
    space: (space != null ? space.value : this.space),
    rentalDiscountPercent: (rentalDiscountPercent != null
        ? rentalDiscountPercent.value
        : this.rentalDiscountPercent),
    rentalDaysPerWeek: (rentalDaysPerWeek != null
        ? rentalDaysPerWeek.value
        : this.rentalDaysPerWeek),
    salesDiscountPercent: (salesDiscountPercent != null
        ? salesDiscountPercent.value
        : this.salesDiscountPercent),
    spaceDiscountPercent: (spaceDiscountPercent != null
        ? spaceDiscountPercent.value
        : this.spaceDiscountPercent),
    rentalAsOf: (rentalAsOf != null ? rentalAsOf.value : this.rentalAsOf),
    salesAsOf: (salesAsOf != null ? salesAsOf.value : this.salesAsOf),
    laborAsOf: (laborAsOf != null ? laborAsOf.value : this.laborAsOf),
    miscAsOf: (miscAsOf != null ? miscAsOf.value : this.miscAsOf),
    spaceAsOf: (spaceAsOf != null ? spaceAsOf.value : this.spaceAsOf),
    spaceDaysPerWeek: (spaceDaysPerWeek != null
        ? spaceDaysPerWeek.value
        : this.spaceDaysPerWeek),
    companyId: (companyId != null ? companyId.value : this.companyId),
    applyDiscountToCustomRate: (applyDiscountToCustomRate != null
        ? applyDiscountToCustomRate.value
        : this.applyDiscountToCustomRate),
    inactive: (inactive != null ? inactive.value : this.inactive),
    dateStamp: (dateStamp != null ? dateStamp.value : this.dateStamp),
    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),
    hasDocuments: (hasDocuments != null
        ? hasDocuments.value
        : this.hasDocuments),
    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),
  );
}