class TileBuilder: JsonModel { val titleProperty = SimpleStringProperty() var title by titleProperty override fun updateModel(json: JsonObject) { with (json) { title = string("title") ?: "title" } } override fun toJSON(json: JsonBuilder) { with(json) { add("title", title) } }