PolymorphismTrampoline
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| class | Py< PyType > | The Python type used as the base for determining polymorphic behavior during serialization. |
| serializer | Arc< CombinedSerializer > | Inner serializer used when the type is not a subclass (responsible for any fallback etc). |
| enabled_from_config | bool | Whether polymorphic serialization is enabled from config. |
Constructor
Signature
def PolymorphismTrampoline(
class: Py< PyType >,
serializer: Arc< CombinedSerializer >,
enabled_from_config: bool
)
Parameters
| Name | Type | Description |
|---|---|---|
| class | Py< PyType > | The Python class type associated with this trampoline. |
| serializer | Arc< CombinedSerializer > | The inner serializer used when the type is not a subclass. |
| enabled_from_config | bool | Flag indicating if polymorphic serialization is enabled via configuration. |
Signature
def PolymorphismTrampoline(
class: PyType,
serializer: CombinedSerializer,
enabled_from_config: bool
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| class | PyType | The Python class type used to determine if a value is a subclass for polymorphic dispatch |
| serializer | CombinedSerializer | The internal serializer instance responsible for handling standard serialization or fallback logic |
| enabled_from_config | bool | A flag indicating whether polymorphic serialization behavior is active based on the current configuration |