def toDict(msi_object):
    """
    Retuns a dictionary representing the object. This method is used in json.dump in argument named "default" for recursively convert an object to json.

    :param msi_object: The object to convert.
    :type msi_object: a class of anacore.msi library
    :return: The dictionary representing the object.
    :rtype: dict
    """
    return msi_object.__dict__
