rackspace-autoscale/src/main/java/org/jclouds/rackspace/autoscale/v1/binders/BindWebhookToJson.java [38:48]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      this.jsonBinder = jsonBinder;
   }

   // This to be refactored with the other BindWebhook bindings
   @SuppressWarnings("unchecked")
   @Override    
   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
      ImmutableMap.Builder<String, Object> webhook = ImmutableMap.builder();
      webhook.put("name", postParams.get("name"));
      ImmutableMap<String, Object> metadata = postParams.get("metadata") != null ?
            ImmutableMap.copyOf((Map<String, Object>) postParams.get("metadata")) : ImmutableMap.<String, Object>of(); 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



rackspace-autoscale/src/main/java/org/jclouds/rackspace/autoscale/v1/binders/BindWebhookUpdateToJson.java [37:48]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      this.jsonBinder = jsonBinder;
   }

   // This binding will potentially get refactored, as right now it is very close, but not completely the same as the create call.
   // Refactoring will depend on whether this call will change any further.
   @SuppressWarnings("unchecked")
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
      ImmutableMap.Builder<String, Object> webhook = ImmutableMap.builder();
      webhook.put("name", postParams.get("name"));
      ImmutableMap<String, Object> metadata = postParams.get("metadata") != null ?
            ImmutableMap.copyOf((Map<String, Object>) postParams.get("metadata")) : ImmutableMap.<String, Object>of();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



