fromAssetMap static method
Convenience method to load graph with Map data from asset file
Implementation
static Future<NodeGraph<Map<String, dynamic>>> fromAssetMap(
String assetPath,
) async {
final String jsonString = await rootBundle.loadString(assetPath);
return fromJsonStringMap(jsonString);
}