I want to convert a mutable map to Any object. For example:
Val map = mutableMapOf("name" to "michael", "age" to "12")
Var user = map.toObject //Any Object i want
And :
Print((user as User).name)
//output michael
Print((user as User).age)
//output 12
Class User(val name, val age){
}
because I am creating a generic function. by what way do this?