extractTextFromResponse static method

String extractTextFromResponse(
  1. String jsonStr
)

Extract text from a LiteRT-LM JSON response chunk. Delegates to SdkTextExtractor — single source of truth shared with the web @litert-lm/core path so both engines map identical chunks to text the same way.

Implementation

static String extractTextFromResponse(String jsonStr) =>
    SdkTextExtractor.extractTextFromResponse(jsonStr);