mss_dataserver.core.json_util.object_to_dict

mss_dataserver.core.json_util.object_to_dict(obj, attr)[source]

Copy selected attributes of object to a dictionary.

Parameters
  • obj (object) – An instance of a python class.

  • attr (list of String) – The attributes to copy to the dictionary.

Returns

d – A dictionary with the selected attributes.

Return type

dict