code: def params_to_json(cls, params):
      
      params_cp = dict(params)
      if cls.PATH_FILTER_PARAM in params_cp:
        path_filter = params_cp[cls.PATH_FILTER_PARAM]
        params_cp[cls.PATH_FILTER_PARAM] = pickle.dumps(path_filter)
      return params_cp
docs: Inherit docs.