> + * 
> + * @author Epi Vou
> + */
> +@Singleton
> +public class BindConsoleToJsonPayload extends BindToJsonPayload {
> +
> +   @Inject
> +   public BindConsoleToJsonPayload(Json jsonBinder) {
> +      super(jsonBinder);
> +   }
> +
> +   @Override
> +   public <R extends HttpRequest> R bindToRequest(R request, Map<String, 
> Object> postParams) {
> +      String action = null;
> +
> +      Console.Type type = (Console.Type) postParams.get("type");

Is this needed? fromValue in the enumType in conjunction with toString should 
ensure GSON mapping happens automatically as per 
https://wiki.apache.org/jclouds/Enums

I am probably missing something?

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

Reply via email to