fromJsonStringMap static method
NodeGraph<Map<String, dynamic> >
fromJsonStringMap(
- String jsonString, {
- Annotation annotationFromJson() = defaultAnnotationFromJson,
Convenience method to load graph with Map data from JSON string
Implementation
static NodeGraph<Map<String, dynamic>> fromJsonStringMap(
String jsonString, {
Annotation Function(Map<String, dynamic> json) annotationFromJson =
defaultAnnotationFromJson,
}) {
final Map<String, dynamic> json = jsonDecode(jsonString);
return fromJsonMap(json, annotationFromJson: annotationFromJson);
}