saveMiniApps method
Save list of miniapps in cache
Implementation
Future<bool> saveMiniApps(List<NUIMiniProgramModule> miniApps) async{
final sharedPref = await getSharedPref();
final list = miniApps.map((value){
return value.toJson();
}).toList();
await sharedPref.save(name, jsonEncode(list));
return true;
}