<@U0F3291QE> I just used the UserModel i get when ...
# tornadofx
f
@edvin I just used the UserModel i get when generating it with the intellij plugin. And it gave me a Peoperty<String>
Copy code
class User: JsonModel {
    val tokenProperty = SimpleStringProperty("")
    var token by tokenProperty

    override fun updateModel(json: JsonObject) {
        with(json) {
            token = string("token")
            //error = string("error")
        }
    }

}

class UserModel : tornadofx.ItemViewModel<User>() {
    val token = bind(User::tokenProperty)
}