toJson

fun toJson(): JsonObject

The fields this metadata adds to the context.instrumentation block. A field that is null is omitted, and impression is omitted when both of its thresholds are.