(self)
return {k: getattr(self, k)
                for k in self.fields
                if hasattr(self, k) and
                getattr(self, k) != wsme.Unset}
Render this object as a dict of its fields.
Render this object as a dict of its fields.
Render this object as a dict of its fields .
def as_dict(self):
        """Render this object as a dict of its fields."""
        return {k: getattr(self, k)
                for k in self.fields
                if hasattr(self, k) and
                getattr(self, k) != wsme.Unset}
def as_dict ( self ) : return { k : getattr ( self , k ) for k in self . fields if hasattr ( self , k ) and getattr ( self , k ) != wsme . Unset }