JSValue.makeFromJSONString constructor
Creates a JavaScript value from a JSON formatted string.
string
The JSString containing the JSON string to be parsed.
Implementation
factory JSValue.makeFromJSONString(
JSContext context,
String string, {
bool autoDispose = true,
}) {
final jstring = JSString.fromString(string);
return JSValue(
context,
JSValueMakeFromJSONString(context.ref, jstring.ref),
autoDispose: autoDispose,
);
}