SerializationCallable
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| serializer | Arc< CombinedSerializer > | Thread-safe reference to the combined serializer used to convert data into the target format. |
| extra_owned | [ExtraOwned](../../../extra/extraowned.md?sid=serializers_extra_extraowned) | Owned data container that provides additional context or state required during the serialization process. |
| filter | [AnyFilter](../../../filter/anyfilter.md?sid=serializers_filter_anyfilter) | Filtering logic applied to the data to determine which fields or elements should be included in the output. |
Constructor
Signature
def SerializationCallable(
serializer: Arc< CombinedSerializer >,
extra_owned: [ExtraOwned](../../../extra/extraowned.md?sid=serializers_extra_extraowned),
filter: [AnyFilter](../../../filter/anyfilter.md?sid=serializers_filter_anyfilter)
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| serializer | Arc< CombinedSerializer > | The core serializer logic to be used. |
| extra_owned | [ExtraOwned](../../../extra/extraowned.md?sid=serializers_extra_extraowned) | Owned extra configuration or state for serialization. |
| filter | [AnyFilter](../../../filter/anyfilter.md?sid=serializers_filter_anyfilter) | The filter to apply during the serialization process. |
Methods
__call__()
def __call__(
obj: Any
) - > Any
Executes the serialization process on a given Python object using the internal serializer and filter configuration.
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Any | The Python object to be serialized into a format suitable for output. |
Returns
| Type | Description |
|---|---|
Any | The serialized representation of the input object, typically a dictionary or a primitive type depending on the serializer configuration. |