io.vertx.ext.consul.ServiceOptionsConverter Maven / Gradle / Ivy
The newest version!
package io.vertx.ext.consul;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter and mapper for {@link io.vertx.ext.consul.ServiceOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.consul.ServiceOptions} original class using Vert.x codegen.
*/
public class ServiceOptionsConverter {
static void fromJson(Iterable> json, ServiceOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "id":
if (member.getValue() instanceof String) {
obj.setId((String)member.getValue());
}
break;
case "name":
if (member.getValue() instanceof String) {
obj.setName((String)member.getValue());
}
break;
case "tags":
if (member.getValue() instanceof JsonArray) {
java.util.ArrayList list = new java.util.ArrayList<>();
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy