ron
06/25/2018, 8:18 AMoverride fun updateModel(json: JsonObject) {
with(json) {
name = json.getString("name")
dropAllowed = json.getBoolean("dropAllowed")
children.setAll(json.getJsonArray("children")?.toModel() ?: emptyList<PhotoCategory>())
photolist.setAll(json.getJsonArray("photolist")?.toModel() ?: emptyList<Photo>())
}