/** * Create a result-set from JSON * * @param json the json */ @SuppressWarnings("unchecked") public ResultSet(JsonObject json) { ResultSetConverter.fromJson(json, this); }
/** * Convert to JSON * * @return json object */ public JsonObject toJson() { JsonObject obj = new JsonObject(); ResultSetConverter.toJson(this, obj); return obj; }
public static void toJson(ResultSet obj, JsonObject json) { toJson(obj, json.getMap()); }