override fun create()

in health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/ui/ListSessionsScreen/ListSessionsViewModel.kt [94:102]


    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        if (modelClass.isAssignableFrom(ListSessionsViewModel::class.java)) {
            @Suppress("UNCHECKED_CAST")
            return ListSessionsViewModel(
                healthPlatformManager = healthPlatformManager
            ) as T
        }
        throw IllegalArgumentException("Unknown ViewModel class")
    }