How to KeySwitch - Serialize (CKKS) - OpenFHE


Regarding the keys generated from the methods, KeySwitchGen() and MultiKeySwitchGen(),
How can I serialize those?

I want to :

1.serialize key from KeySwitchGen
2. Move it to the second party & deserialize
3. call MultiKeySwitchGen on second party, serialize the result
4. Move the result back to the main party.

I did check the Palisade example but since there are some differences I’m not sure which function to use.
I also did not see any SerializeEvalKeySwitch kind of function.

It seems that SerializeToFile works.