convert_dict

GeneralFileDecoder.convert_dict(d)[source]

Convert a dictionary to objects.

The dictionary to convert should have been with an mss_dataserver JSON file encoder class. In this case, the dictionaries contains hints of the original class and module name in the __class__, __module__ and __base_class__ keys. These are used to convert the dictionary to instances of the given classes.

Parameters

d (dict) – The dictionary to convert.

Returns

inst – The object representation of dict d.

Return type

object