getJson static method
Get json from storage or local
Implementation
static Future<Map<String, dynamic>?> getJson(String path,
{bool isLocal = false}) async {
if (isLocal) {
return getLocalJson(path);
} else {
return jsonDecode(await FireUploader().getObject(path) as String);
}
}