Ejemplo n.º 1
0
 @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");
 }
Ejemplo n.º 2
0
 @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");
 }