def serialize_structures(storage):
    """
    Serializes storage structures into dict.

    :param dict storage: Storage dict.
    :return: Serialized storage.
    :rtype: dict
    """

    return {
        "tasks": [list(t._asdict().values()) for t in storage["tasks"]],
        "groups": [list(g._asdict().values()) for g in storage["groups"]],
    }