def __extended_to_json__(self) -> t.Mapping[str, t.Any]:
"""Create a extended JSON serializable representation of this object.
This object will look like this:
.. code:: python
{
'hidden': bool, # indicating if this user can once
# see hidden assignments.
**self.__to_json__()
}
:returns: A object as described above.
"""
return {
"hidden": self.can_see_hidden,
**self.__to_json__(),
}
评论列表
文章目录