def to_dict()

in cassette/mocked_response.py [0:0]


    def to_dict(self):
        """Return dict representation."""

        if not hasattr(self, "attrs"):
            raise AttributeError("You need to have an 'attrs' class attr.")

        return {k: getattr(self, k) for k in self.attrs}