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