from typing import List
from typing import Dict
from typing import Any


def _transform_dto_list_to_list_of_dicts(dto_list) -> List[Dict[str, Any]]:
    """
    Given a list of DTO objects, this function returns a list of dicts, that can be passed to jsonify function.
    """
    return [vars(dto_obj) for dto_obj in dto_list]