> +         properties.put("bus", payload.bus());
> +      
> +      if (payload.type() != null)
> +         properties.put("type", payload.type());
> +      
> +      if (payload.imagePassword() != null)
> +         properties.put("imagePassword", payload.imagePassword());
> +      
> +      if (payload.image() != null)
> +         properties.put("image", payload.image());
> +      else if (payload.licenceType() != null)
> +         properties.put("licenceType", payload.licenceType());
> +      
> +      requestBuilder.put("properties", properties);
> +      
> +      return (new Gson()).toJson(requestBuilder);

Use the `Json` object, as you did with 
[here](https://github.com/jclouds/jclouds-labs/blob/master/profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/binder/server/AttachCdromRequestBinder.java#L52).

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/233/files#r52558992

Reply via email to