Skip to main content

infer_serialize_known

No overview available.

def infer_serialize_known(
value: Any,
context: dict
) - > Callable

Infers the serialization logic for known data types based on the provided value and context.

Parameters

NameTypeDescription
valueAnyThe data value used to determine the appropriate serialization strategy.
contextdictA dictionary containing configuration settings and metadata that influence how types are mapped to serializers.

Returns

TypeDescription
CallableA serialization function that converts the input type into a format suitable for the target output.