def map_listing_model_to_dao(instance: ListingModel):
    """maps ListingModel to a data access object (a dictionary)"""
    data = instance.data
    return ListingDAO(
        id=instance.id,
        ends_at=data["ends_at"],
        bids=[],
    )
maps ListingModel to a data access object (a dictionary)
src/modules/bidding/application/query/model_mappers.py