def METHOD_NAME(self) -> None:
    """Save state to disk (if possible)."""
    print('ASSET-MANAGER SAVING STATE')
    try:
        with open(self.state_path, 'w', encoding='utf-8') as outfile:
            outfile.write(dataclass_to_json(self._state))
    except Exception:
        logging.exception('Error writing AssetManager state')