fromJsonString<T> static method
Convenience method to load graph from JSON string
Implementation
static NodeGraph<T> fromJsonString<T>(
String jsonString,
T Function(Object? json) fromJsonT,
) {
final Map<String, dynamic> json = jsonDecode(jsonString);
return NodeGraph<T>.fromJson(json, fromJsonT);
}