def METHOD_NAME(plugin) -> 'PluginDict':
    return {
        'name': plugin.name,
        'api_ver': plugin.api_ver,
        'builtin': plugin.builtin,
        'category': plugin.category,
        'debug': plugin.debug,
        'interfaces': plugin.interfaces,
        'phase_handlers': [
            {'phase': handler, 'priority': event.priority}
            for handler, event in plugin.phase_handlers.items()
        ],
    }