serializeToFile

Serializes the given NavigationResumeSnapshot into a binary file.

To deserialize the data, use the deserializeFromFile method.

Return

Unit or NavigationResumeSnapshotSerializationFailure in the case of a serialization failure.