copyWithWrapped method

WebApiModulesAgentOrderCopyQuoteOrderRequest copyWithWrapped({
  1. Wrapped<String>? copyToType,
  2. Wrapped<String?>? locationId,
  3. Wrapped<String?>? warehouseId,
  4. Wrapped<String?>? newDescription,
  5. Wrapped<String?>? pickDate,
  6. Wrapped<String?>? pickTime,
  7. Wrapped<String?>? estimatedStartDate,
  8. Wrapped<String?>? estimatedStartTime,
  9. Wrapped<String?>? estimatedStopDate,
  10. Wrapped<String?>? estimatedStopTime,
  11. Wrapped<bool?>? copyLineItemUnitCosts,
  12. Wrapped<bool?>? copyWithUserSelectedDates,
  13. Wrapped<bool?>? copyLineItemNotes,
  14. Wrapped<bool?>? useCurrentPricing,
  15. Wrapped<bool?>? copyOrderNotes,
  16. Wrapped<bool?>? combineSubs,
  17. Wrapped<bool?>? copyDocuments,
  18. Wrapped<bool?>? copyCarrierShipVia,
  19. Wrapped<bool?>? useCurrentDealTax,
})

Implementation

WebApiModulesAgentOrderCopyQuoteOrderRequest copyWithWrapped({
  Wrapped<String>? copyToType,
  Wrapped<String?>? locationId,
  Wrapped<String?>? warehouseId,
  Wrapped<String?>? newDescription,
  Wrapped<String?>? pickDate,
  Wrapped<String?>? pickTime,
  Wrapped<String?>? estimatedStartDate,
  Wrapped<String?>? estimatedStartTime,
  Wrapped<String?>? estimatedStopDate,
  Wrapped<String?>? estimatedStopTime,
  Wrapped<bool?>? copyLineItemUnitCosts,
  Wrapped<bool?>? copyWithUserSelectedDates,
  Wrapped<bool?>? copyLineItemNotes,
  Wrapped<bool?>? useCurrentPricing,
  Wrapped<bool?>? copyOrderNotes,
  Wrapped<bool?>? combineSubs,
  Wrapped<bool?>? copyDocuments,
  Wrapped<bool?>? copyCarrierShipVia,
  Wrapped<bool?>? useCurrentDealTax,
}) {
  return WebApiModulesAgentOrderCopyQuoteOrderRequest(
    copyToType: (copyToType != null ? copyToType.value : this.copyToType),
    locationId: (locationId != null ? locationId.value : this.locationId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
    newDescription: (newDescription != null
        ? newDescription.value
        : this.newDescription),
    pickDate: (pickDate != null ? pickDate.value : this.pickDate),
    pickTime: (pickTime != null ? pickTime.value : this.pickTime),
    estimatedStartDate: (estimatedStartDate != null
        ? estimatedStartDate.value
        : this.estimatedStartDate),
    estimatedStartTime: (estimatedStartTime != null
        ? estimatedStartTime.value
        : this.estimatedStartTime),
    estimatedStopDate: (estimatedStopDate != null
        ? estimatedStopDate.value
        : this.estimatedStopDate),
    estimatedStopTime: (estimatedStopTime != null
        ? estimatedStopTime.value
        : this.estimatedStopTime),
    copyLineItemUnitCosts: (copyLineItemUnitCosts != null
        ? copyLineItemUnitCosts.value
        : this.copyLineItemUnitCosts),
    copyWithUserSelectedDates: (copyWithUserSelectedDates != null
        ? copyWithUserSelectedDates.value
        : this.copyWithUserSelectedDates),
    copyLineItemNotes: (copyLineItemNotes != null
        ? copyLineItemNotes.value
        : this.copyLineItemNotes),
    useCurrentPricing: (useCurrentPricing != null
        ? useCurrentPricing.value
        : this.useCurrentPricing),
    copyOrderNotes: (copyOrderNotes != null
        ? copyOrderNotes.value
        : this.copyOrderNotes),
    combineSubs: (combineSubs != null ? combineSubs.value : this.combineSubs),
    copyDocuments: (copyDocuments != null
        ? copyDocuments.value
        : this.copyDocuments),
    copyCarrierShipVia: (copyCarrierShipVia != null
        ? copyCarrierShipVia.value
        : this.copyCarrierShipVia),
    useCurrentDealTax: (useCurrentDealTax != null
        ? useCurrentDealTax.value
        : this.useCurrentDealTax),
  );
}