def to_json(self): return json_attributes(self, 'name', 'profiles', 'followers', 'followings', 'notifications')
def to_json(self): return json_attributes(self, 'avatar_url', 'name', 'location', 'gender', 'birthdate', 'bio' )
def to_json(self): return json_attributes(self, ('id', str), 'identity', ('created_at', time_to_string), 'notification_path', 'permissions', 'types', 'licenses')
def to_json(self): """Returns the post as a python dictonary TODO: 'mentions' TODO: 'licenses' TODO: 'attachments' TODO: 'app' TODO: 'views' TODO: 'permissions' """ return json_attributes(self, ('id', str), 'content', ('published_at', time_to_string), ('received_at', time_to_string), entity=self.entity.core.identity, type=self.schema)
def to_json(self): # TODO: test this return json_attributes(self, *self._dynamic_fields)
def to_json(self): return json_attributes(self, 'name', ('profiles', iterable_to_json), ('followers', iterable_to_json), ('followings', iterable_to_json))