def to_h
      sanitized_params.each_with_object({}) do |(key, value), hash|
        hash[key] = transform(key, value)
      end
    end
def to_h
      sanitized_params.each_with_object({}) do |(key, value), hash|
        hash[key] = transform(key, value)
      end
    end
Initialize parameter transformer

 @param params [ActionController::Parameters] parameters to be altered
 Returns the transformed parameters