List of usage examples for io.vertx.core DeploymentOptionsConverter fromJson
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, DeploymentOptions obj)
From source file:com.chibchasoft.vertx.verticle.deployment.DeploymentConfiguration.java
License:Open Source License
/** * Populates this object with the information from the supplied JsonObject * @param json The JSON Object// w w w.ja va 2 s . c o m */ public void fromJson(JsonObject json) { Objects.requireNonNull(json, "json is required"); if (json.getValue("name") instanceof String) setName((String) json.getValue("name")); if (json.getValue("deploymentOptions") instanceof JsonObject) { setDeploymentOptions(new DeploymentOptions()); DeploymentOptionsConverter.fromJson((JsonObject) json.getValue("deploymentOptions"), this.getDeploymentOptions()); } if (json.getValue("dependents") instanceof JsonArray) { json.getJsonArray("dependents").forEach(item -> { if (item instanceof JsonObject) { DependentsDeployment deps = new DependentsDeployment(); deps.fromJson((JsonObject) item); getDependents().add(deps); } }); } }