parseSdlJson function

EntityGraphIR parseSdlJson(
  1. String json
)

Parse an SDL document from a JSON string.

Implementation

EntityGraphIR parseSdlJson(String json) {
  // Simple JSON decode without dart:convert to keep the library dependency-free.
  // In real usage, callers decode first then pass to parseSdl.
  // This is a thin wrapper for test convenience.
  // ignore: avoid_dynamic_calls
  throw UnimplementedError(
    'Use dart:convert jsonDecode first, then call parseSdl(decoded).',
  );
}