Returns a dict expressing the flow stats.

def to_jsondict(self):
        """
        Returns a dict expressing the flow stats.
        """
        body = {"oxs_fields": [ofproto.oxs_to_jsondict(k, uv) for k, uv
                               in self.fields],
                "length": self.length}
        return {self.__class__.__name__: body}