ron
04/04/2017, 9:16 PMoverride fun toJSON(json: JsonBuilder) {
with(json){
add("name", name)
add("dropAllowed", dropAllowed)
add("children", children.toJSON())
}
}
override fun updateModel(json: JsonObject) {
with(json){
name = json.getString("name")
dropAllowed = json.getBoolean("dropAllowed")
children.setAll(json.getJsonArray("children").toModel())
}
}