hmm, what is the class User for? i understand that...
# klaxon
d
hmm, what is the class User for? i understand that
Data
is used to parse it, but how i wrote a code for using the class User? is it something like this :
Copy code
class Data(val msg: String, val user: User, val token: String)
class User(val id: Int, val username: String, val role: String, ...)

val data = Klaxon().parse<Data>("your json")
val user = Klaxon().parse<User>(data)
?