def get_hosts_dict(self) -> Dict:
        """
        Returns serialized dictionary of hosts from inventory
        """
        return {
            k: deserializer.inventory.InventoryElement.serialize(v).dict()
            for k, v in self.hosts.items()
        }