class documentation
class JSONableInstance(JSONable[
A class that conforms to JSONableInstance can be both serialized to and deserialized from JSON by a JSONRegistry. JSONableInstance.
| Class Method | from |
Load an instance of this type from the given deserialized JSON object, which should be in the format returned by an instance of this class's toJSON method. |
| Class Method | type |
On a JSONableInstance, the typeCodeForJSON method must be a classmethod, because the class needs to be registered for de-serialization at class-definition time, before any instances exist. |
Inherited from JSONable:
| Method | to |
Convert this callable to a JSON-serializable dictionary. |
@classmethod
def fromJSON(cls:
def fromJSON(cls:
type[ JSONableSelf], load: LoadProcess[ BootstrapTInv], json: JSONObject) -> JSONableSelf:
(source)
¶
Load an instance of this type from the given deserialized JSON object, which should be in the format returned by an instance of this class's toJSON method.
On a JSONableInstance, the typeCodeForJSON method must be a classmethod, because the class needs to be registered for de-serialization at class-definition time, before any instances exist.
| See Also | |
HasTypeCode |