![]() |
Coretex
|
Public Member Functions | |
| Dict[str, Any] | encode (self) |
| None | onDecode (self) |
| Self | decode (cls, Dict[str, Any] encodedObject) |
Class whose subclasses can be serialized/deserialized into/from a JSON format object
Definition at line 30 of file codable.py.
| Self coretex.codable.codable.Codable.decode | ( | cls, | |
| Dict[str, Any] | encodedObject | ||
| ) |
Decodes the json object into a python object
Parameters
----------
encodedObject : Dict[str, Any]
json encoded object
Returns
-------
Self -> Decoded python object
Definition at line 239 of file codable.py.
| Dict[str, Any] coretex.codable.codable.Codable.encode | ( | self | ) |
Encodes python object into dictionary which contains
only values representable by standard python library/types
Returns
-------
Dict[str, Any] -> encoded object which can be serialized into json string
Definition at line 123 of file codable.py.
| None coretex.codable.codable.Codable.onDecode | ( | self | ) |
Callback which is called once the object has been decoded
Definition at line 231 of file codable.py.