package Ġcom . ieee vit . g ak ko . ui . home . notifications Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . ieee vit . g ak ko . data . repository . Notifications Repo ĊĊ Ċ @ Suppress (" UN CHECK ED _ CAST ") Ċ class ĠNotifications ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġnotifications Repo : ĠNotifications Repo Ċ ): ĠViewModel Provider . New Instance Factory (){ ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠNotifications ViewModel ( notifications Repo ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }