def METHOD_NAME(self, dumpdata):
    if self._mode == "name":
        dumpdata.update({'oplist': self._mapper.get_oplist()})
    elif self._mode == "index":
        dumpdata.update({'oplist': self._mapper.get_opmap()})
    configs = {}
    for solution in dumpdata['solutions']:
        if self._mode == "name":
            configs[int(solution["id"])] = fetch_config_by_name(
                dumpdata['oplist'], solution["id"], self._nbackends)
        elif self._mode == "index":
            configs[int(solution["id"])] = fetch_config_by_indx(
                dumpdata['oplist'], solution["id"], self._nbackends)
    dumpdata.update({'configs': configs})
    return dumpdata