/** * Constructor from JSON * * @param json the json */ @SuppressWarnings("unchecked") public UpdateResult(JsonObject json) { UpdateResultConverter.fromJson(json, this); }
/** * Convert to JSON * * @return the json */ public JsonObject toJson() { JsonObject obj = new JsonObject(); UpdateResultConverter.toJson(this, obj); return obj; }
public static void toJson(UpdateResult obj, JsonObject json) { toJson(obj, json.getMap()); }