jangada.serialization.SerializableMetatype.serializable_properties#
- property SerializableMetatype.serializable_properties: dict[str, SerializableProperty]#
Get all SerializableProperty descriptors on this class.
- Returns:
- dict[str, SerializableProperty]
Dictionary mapping property names to descriptors.
Notes
This includes properties inherited from base classes. Returns a copy of the internal dictionary to prevent modification.
Examples
>>> class MyClass(Serializable): ... prop1 = SerializableProperty(default=0) ... prop2 = SerializableProperty(default="") ... >>> props = MyClass.serializable_properties >>> 'prop1' in props True >>> 'prop2' in props True