copyWith method

WebApiModulesAgentOrderCopyQuoteOrderRequest copyWith({
  1. String? copyToType,
  2. String? locationId,
  3. String? warehouseId,
  4. String? newDescription,
  5. bool? copyLineItemUnitCosts,
  6. bool? copyLineItemNotes,
  7. bool? useCurrentPricing,
  8. bool? copyOrderNotes,
  9. bool? combineSubs,
  10. bool? copyDocuments,
  11. bool? copyCarrierShipVia,
  12. bool? useCurrentDealTax,
})

Implementation

WebApiModulesAgentOrderCopyQuoteOrderRequest copyWith(
    {String? copyToType,
    String? locationId,
    String? warehouseId,
    String? newDescription,
    bool? copyLineItemUnitCosts,
    bool? copyLineItemNotes,
    bool? useCurrentPricing,
    bool? copyOrderNotes,
    bool? combineSubs,
    bool? copyDocuments,
    bool? copyCarrierShipVia,
    bool? useCurrentDealTax}) {
  return WebApiModulesAgentOrderCopyQuoteOrderRequest(
      copyToType: copyToType ?? this.copyToType,
      locationId: locationId ?? this.locationId,
      warehouseId: warehouseId ?? this.warehouseId,
      newDescription: newDescription ?? this.newDescription,
      copyLineItemUnitCosts:
          copyLineItemUnitCosts ?? this.copyLineItemUnitCosts,
      copyLineItemNotes: copyLineItemNotes ?? this.copyLineItemNotes,
      useCurrentPricing: useCurrentPricing ?? this.useCurrentPricing,
      copyOrderNotes: copyOrderNotes ?? this.copyOrderNotes,
      combineSubs: combineSubs ?? this.combineSubs,
      copyDocuments: copyDocuments ?? this.copyDocuments,
      copyCarrierShipVia: copyCarrierShipVia ?? this.copyCarrierShipVia,
      useCurrentDealTax: useCurrentDealTax ?? this.useCurrentDealTax);
}