def decode(self, s):
        o = _objectify(s)
        try:
            file_path = o["file_path"]
            active = o["active"]
            sel_regions = [
                RegionDecoder.decode(self, region) for region in o["sel_regions"]
            ]
            visible_region = RegionDecoder.decode(self, o["visible_region"])
        except __HOLE__:
            pass
        else:
            return session.View(file_path, active, sel_regions, visible_region)

        return json.JSONDecoder.decode(self, o)
dataset/ETHPy150Open Zeeker/sublime-SessionManager/json/decoder.py/ViewDecoder.decode