toJson

fun toJson(): JsonObject

Serializes this envelope as a JSON object for embedding into event context.