encode

fun encode(checkpoint: Checkpoint<State>): String

Returns checkpoint as a JSON string.