copyWith method

WebApiModulesWarehouseCheckInCheckInItemsRequest copyWith({
  1. String? contractId,
  2. String? containerId,
  3. String? containerItemId,
  4. String? containerOutContractId,
  5. String? dealId,
  6. String? departmentId,
  7. String? locationId,
  8. String? moduleType,
  9. String? contractType,
  10. String? userWarehouseId,
  11. bool? forceNewSession,
  12. List<WebApiModulesWarehouseCheckInCheckInItem>? items,
})

Implementation

WebApiModulesWarehouseCheckInCheckInItemsRequest copyWith(
    {String? contractId,
    String? containerId,
    String? containerItemId,
    String? containerOutContractId,
    String? dealId,
    String? departmentId,
    String? locationId,
    String? moduleType,
    String? contractType,
    String? userWarehouseId,
    bool? forceNewSession,
    List<WebApiModulesWarehouseCheckInCheckInItem>? items}) {
  return WebApiModulesWarehouseCheckInCheckInItemsRequest(
      contractId: contractId ?? this.contractId,
      containerId: containerId ?? this.containerId,
      containerItemId: containerItemId ?? this.containerItemId,
      containerOutContractId:
          containerOutContractId ?? this.containerOutContractId,
      dealId: dealId ?? this.dealId,
      departmentId: departmentId ?? this.departmentId,
      locationId: locationId ?? this.locationId,
      moduleType: moduleType ?? this.moduleType,
      contractType: contractType ?? this.contractType,
      userWarehouseId: userWarehouseId ?? this.userWarehouseId,
      forceNewSession: forceNewSession ?? this.forceNewSession,
      items: items ?? this.items);
}