package Ġ` in `. j unk iel abs . park ing . ui . components . report . list . view model Ċ Ċ import Ġ` in `. j unk iel abs . park ing . application . Application My Ċ import Ġ` in `. j unk iel abs . park ing . components . api . repository . Api Repo Check InOut Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠN ir aj Ġon Ġ 1 0 - 1 2 - 2 0 2 1 . Ċ Ġ*/ Ċ class ĠReport ViewModel Factory ( var Ġapplication : ĠApplication My ): ĠViewModel Provider . Android ViewModel Factory ( application ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġmodel Class . get Constructor ( Application :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠApi Repo Check InOut :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. newInstance ( application , ĠApi Repo Check InOut ()) ĊĠĠĠ Ġ} Ċ }