copyWith method

WebApiModulesAgentOrderItemSplitOrderItemRequest copyWith({
  1. String? orderId,
  2. String? orderItemId,
  3. double? splitQuantity,
  4. double? splitConsignQuantity,
  5. bool? splitEntirePackage,
  6. bool? separateLine,
  7. bool? notYetStagedOnly,
  8. bool? stagedOutOnly,
  9. bool? outOnly,
  10. bool? inOnly,
  11. String? consignorId,
  12. String? consignorAgreementId,
  13. bool? reSortItemsAfterSplit,
})

Implementation

WebApiModulesAgentOrderItemSplitOrderItemRequest copyWith({
  String? orderId,
  String? orderItemId,
  double? splitQuantity,
  double? splitConsignQuantity,
  bool? splitEntirePackage,
  bool? separateLine,
  bool? notYetStagedOnly,
  bool? stagedOutOnly,
  bool? outOnly,
  bool? inOnly,
  String? consignorId,
  String? consignorAgreementId,
  bool? reSortItemsAfterSplit,
}) {
  return WebApiModulesAgentOrderItemSplitOrderItemRequest(
    orderId: orderId ?? this.orderId,
    orderItemId: orderItemId ?? this.orderItemId,
    splitQuantity: splitQuantity ?? this.splitQuantity,
    splitConsignQuantity: splitConsignQuantity ?? this.splitConsignQuantity,
    splitEntirePackage: splitEntirePackage ?? this.splitEntirePackage,
    separateLine: separateLine ?? this.separateLine,
    notYetStagedOnly: notYetStagedOnly ?? this.notYetStagedOnly,
    stagedOutOnly: stagedOutOnly ?? this.stagedOutOnly,
    outOnly: outOnly ?? this.outOnly,
    inOnly: inOnly ?? this.inOnly,
    consignorId: consignorId ?? this.consignorId,
    consignorAgreementId: consignorAgreementId ?? this.consignorAgreementId,
    reSortItemsAfterSplit:
        reSortItemsAfterSplit ?? this.reSortItemsAfterSplit,
  );
}