def METHOD_NAME(self) -> dict:
    """Get saved state from the file."""
    path = Path(self.filename)
    if not path.exists() or not path.is_file():
        raise CommandError(f'No such file: {self.filename}')
    with open(self.filename) as file:
        return json.load(file)