def convert_properties_to(obj, medium, properties)
      direction = medium == :ruby ? :to_ruby : :to_db
      properties.each_pair do |key, value|
        next if skip_conversion?(obj, key, value)
        properties[key] = convert_property(key, value, direction)
      end
    end
def convert_properties_to(obj, medium, properties)
      direction = medium == :ruby ? :to_ruby : :to_db
      properties.each_pair do |key, value|
        next if skip_conversion?(obj, key, value)
        properties[key] = convert_property(key, value, direction)
      end
    end
Modifies a hash's values to be of types acceptable to Neo4j or matching what the user defined using `type` in property definitions.
 @param [Neo4j::Shared::Property] obj A node or rel that mixes in the Property module
 @param [Symbol] medium Indicates the type of conversion to perform.
 @param [Hash] properties A hash of symbol-keyed properties for conversion.