class YesNoBottomSheetFragment: BottomSheetDialogFragment()
{
// implementation
// access data in arguments
}
Other logic stays the same.
class YesNoBottomSheetFragment: BottomSheetDialogFragmentViewModel<YesNoViewModel>()
{
// implementation
// access viewModel
}