readJsonFileAsMap static method
Read JSon file as Map
Implementation
static Future<Map<String, dynamic>> readJsonFileAsMap(String jsonFile) async {
try {
String jsonString = await TGFileUtil.readFile(jsonFile);
return json.decode(jsonString);
} catch (e) {
TGLog.e("Unable to load " + jsonFile);
}
return <String, dynamic>{};
}