def transform_to_many(entity_class_or_decider, root: nil)
      items = get_rooted_items(root)
      unless items.is_a?(Array)
        fail Dialers::ImpossibleTranformationError.new(response)
      end
      items.map { |item| transform_attributes_to_object(entity_class_or_decider, item) }
    end
def transform_to_many(entity_class_or_decider, root: nil)
      items = get_rooted_items(root)
      unless items.is_a?(Array)
        fail Dialers::ImpossibleTranformationError.new(response)
      end
      items.map { |item| transform_attributes_to_object(entity_class_or_decider, item) }
    end
Transforms a response into many objects based on the response's body.

 @param entity_class_or_decider [Hash, Class] A class or a hash of Fixnum => Class
   to decide with the status.
 @param root [String, nil] The root to use to get an array from the body.

 @return [Array<Object>] The result of the transformation.