deserialize
- negmas.serialization.deserialize(d, deep=True, remove_type_field=True, keep_private=False, fallback_class_name=None, python_class_identifier='__python_class__', base_module='')[source]
Decodes a dict/object coming from
serialize
- Parameters:
d (
Any
) – The value to be decoded. If it is not a dict, it is returned as it is.deep – If true, decode recursively
remove_type_field – If true the field called
PYTHON_CLASS_IDENTIFIER
will be removed if found.keep_private – If given, private fields (starting with _) will be kept
fallback_class_name (
str
|None
) – If given, it is used as the fall-back type if ``PYTHON_CLASS_IDENTIFIER` is not in the dict.
Remarks:
If the object is not a dict or if it has no
PYTHON_CLASS_IDENTIFIER
field and nofallback_class_name
is given, the inputd
is returned as it is. It will not even be copied.
See also
serialize
,PYTHON_CLASS_IDENTIFIER