loadFromRootAsJSON static method
Implementation
static Future<void> loadFromRootAsJSON(String fullPath, String id) async {
try {
String raw = await rootBundle.loadString(fullPath);
Map<String, dynamic> map = jsonDecode(raw);
_json[id] = map;
} catch (e) {
throw e;
}
}