/** * Gets the json representation of this {@link Option}. * * @return the json representation */ public JsonObject toJson() { JsonObject json = new JsonObject(); OptionConverter.toJson(this, json); return json; }
/** * Creates a new instance of {@link Option} from the given {@link JsonObject} * * @param json the json object representing the option * @see #toJson() */ public Option(JsonObject json) { this(); OptionConverter.fromJson(json, this); }