checkpointSerialize

fun <T : Any> T.checkpointSerialize(context: CheckpointSerializationContext = effectiveSerializationEnv.checkpointContext): SerializedBytes<T>

Convenience extension method for serializing an object of type T, utilising the default factory.