def to_dict(instance, dict_type=OrderedDict):
return _dump(instance, dict_type=dict_type)<EOL>
Dumps an instance to an dictionary mapping.

    :param object instance: The instance to dump
    :param object dict_type: The dictionary type to use, defaults to ``OrderedDict``
    :return: Dictionary serialization of instance
    :rtype: OrderedDict