Skip to main content

SerializationCallable

No overview available.

Attributes

AttributeTypeDescription
serializerArc< 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

NameTypeDescription
serializerArc< 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

NameTypeDescription
objAnyThe Python object to be serialized into a format suitable for output.

Returns

TypeDescription
AnyThe serialized representation of the input object, typically a dictionary or a primitive type depending on the serializer configuration.