loadJson static method
Implementation
static Future<MapEntry<String, dynamic>> loadJson(
String path, String? raw) async {
String data;
if (raw != null && raw != '') {
data = raw;
} else {
data = await rootBundle.loadString(path);
}
return MapEntry<String, dynamic>(path, json.decode(data));
}