copyWith method

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

Implementation

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