toByteString

fun toByteString(): ByteString

Writes this Snapshot and all its children into a ByteString. The snapshot can be restored with parse.

Any children snapshots for workflows whose WorkflowIdentifiers are unsnapshottable will not be serialized.