parseObjectJSON static method

Map<String, ToolValue> parseObjectJSON(
  1. String json
)

Implementation

static Map<String, ToolValue> parseObjectJSON(String json) {
  final value = fromJSONString(json);
  return value.hasObjectValue()
      ? Map.unmodifiable(value.objectValue.fields)
      : const <String, ToolValue>{};
}