package Ġcom . event ers app . marketplace . ui . view mode lf actory Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . event ers app . marketplace . data . repositories . Profile Repository Ċ import Ġcom . event ers app . marketplace . ui . view model . Profile ViewModel Ċ Ċ @ Suppress (" UN CHECK ED _ CAST ") Ċ class ĠProfile ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġrepository : ĠProfile Repository Ċ ) Ġ: ĠViewModel Provider . New Instance Factory () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠProfile ViewModel ( repository ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }