def METHOD_NAME(self) -> 'list[DataDict]':
    """Return list of items converted to dictionaries.
    Items are converted to dictionaries using the ``to_dict`` method, if
    they have it, or the built-in ``vars()``.
    New in Robot Framework 6.1.
    """
    if not hasattr(self._item_class, 'to_dict'):
        return [vars(item) for item in self]
    return [item.to_dict() for item in self]    # type: ignore