code: def deserialize(data):
          
          # Import module & get class
          try:
              module = import_module(data.get('class').get('module'))
              cls = getattr(module, data.get('class').get('name'))
          except ImportError:
              raise ImportError("No module named: %r" % data.get('class').get('module'))
          except AttributeError:
              raise ImportError("module %r does not contain class %r" % (
                  data.get('class').get('module'),
                  data.get('class').get('name')
              ))
  
          # Deserialize parameters
          class_params = cls.class_params(hidden=True)
          params = dict(
              (name, class_params[name].deserialize(value))
              for (name, value) in data.get('params').items()
          )
  
          # Instantiate new instance
          return cls(**params)
docs: Create instance from serial data