fetchJsonFile function

Future<Map> fetchJsonFile(
  1. String path
)

Implementation

Future<Map> fetchJsonFile(String path) async{
  final response = await FileLoader().unknown(path);
  if(response == null) throw("Error getting profileList.json.");
  return jsonDecode(String.fromCharCodes(response.data));
}