This project would help to understand how to use safeargs plugin of navigation component and how to pass custom data types across fragments.
I have also explained the entire thing in my blog of whose link is below https://makeappswithashutosh.blogspot.com/2020/04/safe-args-and-custom-parcelable.html