def to_h
      details.deep_transform_keys do |key|
        # handle special cases
        pascal_key = key.to_s.camelize
        if SPECIAL_CASES.has_key?(key)
          pascal_key = SPECIAL_CASES[key]
        end
        
        pascal_key
      end
    end
def to_h
      details.deep_transform_keys do |key|
        # handle special cases
        pascal_key = key.to_s.camelize
        if SPECIAL_CASES.has_key?(key)
          pascal_key = SPECIAL_CASES[key]
        end
        
        pascal_key
      end
    end
Converts hash keys to Pascal case and handles special cases.

   :bottle_size_ml #=> 'BottleSizeML'