So, I resolve my issue. corrected navgraph
<argument
android:name="bookingRequestList" app:argType="di.model.parkingSpot.response.BookParkingResponse$Data[]"/>
// this is how i pass the data
findNavController().navigate(
MyParkFragmentDirections.toAllRequestListFragment(
it.parkingSpot?.parkingName!!,
arrayOf(it)
)
)
```
So, this is the easy way to pass data, but what type of data is in our model class? what fragment was sent to the adapter and what type of data the adapter wants. it's a little bit tricky but when you understand. then it will become very easy for you