serializeToFile
fun NavigationResumeSnapshot.serializeToFile(file: File): Result<Unit, NavigationResumeSnapshotSerializationFailure>
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.