application.monkeypatch package#

Submodules#

application.monkeypatch.json_encoder_patch module#

application.types.json_encoder_patch

application.monkeypatch.json_encoder_patch.wrapped_default(self, o)#

Serializes an object to a dictionary representation.

If the object has a __dict__ attribute, it returns a dictionary containing the class name under the key __typename and the object’s dictionary items. Otherwise, it returns the object itself.

Parameters:

obj – The object to be serialized.

Returns:

A dictionary representation of the object if it has a __dict__ attribute. Otherwise, returns the object itself.

Return type:

dict

Module contents#

application.monkeypatch