Customize the deserialize and serialize functions in the session.ts class


In the serialize function in the session.ts class, I want to save the information of sessionContext.syncState. How can I do this and ensure the data is preserved when retrieved?