Method: Algolia::Insights::AddedToCartObjectIDs#to_hash
- Defined in:
- lib/algolia/models/insights/added_to_cart_object_ids.rb
#to_hash ⇒ Hash
Returns the object in the form of hash
308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/algolia/models/insights/added_to_cart_object_ids.rb', line 308 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |