/** * Constructor (from JSON representation) * * @param json JSON representation */ public PartitionInfo(JsonObject json) { PartitionInfoConverter.fromJson(json, this); }
/** * Convert object to JSON representation * * @return JSON representation */ public JsonObject toJson() { JsonObject json = new JsonObject(); PartitionInfoConverter.toJson(this, json); return json; }
public static void toJson(PartitionInfo obj, JsonObject json) { toJson(obj, json.getMap()); }