commonMain.internal.KClass.kt Maven / Gradle / Ivy
package io.kform.internal
import kotlin.reflect.KClass
import kotlin.reflect.KMutableProperty1
/**
* Returns a new instance of a class [T] given its [kClass] and a map mapping properties to their
* [childProps].
*/
internal expect fun constructFromKClass(
kClass: KClass,
childValues: Map,
childProps: Map>
): T