def deep_symbolize_keys
      return each_with_object({}) { |memo, (k, v)| memo[k.to_sym] = v.deep_symbolize_keys } if self.is_a?(Hash)
      return each_with_object([]) { |memo, v| memo << v.deep_symbolize_keys } if self.is_a?(Array)
      self
    end
def deep_symbolize_keys
      return each_with_object({}) { |memo, (k, v)| memo[k.to_sym] = v.deep_symbolize_keys } if self.is_a?(Hash)
      return each_with_object([]) { |memo, v| memo << v.deep_symbolize_keys } if self.is_a?(Array)
      self
    end
Symbolizes keys of a hash