@Override protected void buildFromJson(final JsonNode json) { this.id = (String) JsonHelper.convert(Converters.stringConverter, json, "id"); this.category = (String) JsonHelper.convert(Converters.stringConverter, json, "category"); this.name = (String) JsonHelper.convert(Converters.stringConverter, json, "name"); this.createdTime = (Date) JsonHelper.convert(Converters.dateConverter, json, "created_time"); }
@Override protected void buildFromJson(final JsonNode json) { this.version = (Integer) JsonHelper.convert(Converters.integerConverter, json, "version"); this.name = (String) JsonHelper.convert(Converters.stringConverter, json, "name"); this.id = (String) JsonHelper.convert(Converters.stringConverter, json, "id"); this.administrator = (Boolean) JsonHelper.convert(Converters.booleanConverter, json, "administrator"); this.bookmarkOrder = (Integer) JsonHelper.convert(Converters.integerConverter, json, "bookmark_order"); }