From 44e38ae656fa323de3cf809e1a2a209959a765bd Mon Sep 17 00:00:00 2001 From: Emmanuel Zamora Date: Thu, 16 Oct 2025 12:40:05 -0300 Subject: [PATCH] fix readme example --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 095d229..e1223f1 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,7 @@ This provider includes the Split treatment config as a raw JSON string under fla FlagEvaluationDetails details = client.getStringDetails("my-flag", "fallback", ctx); -Metadata md = details.getFlagMetadata(); -if (md != null) { - - Map meta = md.asMap(); - - Value config = meta.get("config"); // ← Split treatment config -} +String jsonConfig = details.getFlagMetadata().getString("config"); // ← Split treatment config ``` ## Tracking