package Ġio . github . hor ac io come 1 . re aque . ui . users . update Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġio . github . hor ac io come 1 . re aque . data . users . Users Repository Ċ Ċ class ĠUpdate User ViewModel Factory ( private Ġval Ġrepository : ĠUsers Repository ) Ġ: ĊĠĠĠ ĠViewModel Provider . New Instance Factory () Ġ{ ĊĊĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >) Ġ= ĊĠĠĠĠĠĠĠ ĠUpdate User ViewModel ( repository ) Ġas ĠT Ċ Ċ }