> +
> + if (payload.dhcp() != null)
> + properties.put("dhcp", payload.dhcp());
> +
> + if (payload.firewallActive() != null)
> + properties.put("firewallActive", payload.firewallActive());
> +
> + if (payload.firewallrules() != null) {
> + Map<String, Object> entities = new HashMap<String, Object>();
> + entities.put("firewallrules", payload.firewallrules());
> + properties.put("entities", entities);
> + }
> +
> + requestBuilder.put("properties", properties);
> +
> + return (new Gson()).toJson(requestBuilder);
Use the injected `Json`.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/249/files/a17eac2160481358b8735aab30ecf12d672b341b#r56994139