private static Object decodePayload(Inspector entry) {
        return switch (entry.type()) {
            case STRING -> entry.asString();
            case LONG -> entry.asLong();
            case BOOL -> entry.asBool();
            case DOUBLE -> entry.asDouble();
            case DATA -> entry.asData();
            default -> null;
        };
    }
Deserializing from a {@link Inspector} (slime) representation to a {@link TraceNode}

@author Ulf Lilleengen
config/src/main/java/com/yahoo/vespa/config/protocol/SlimeTraceDeserializer.java