getAppConfig method
Implementation
Future<AppConfig?> getAppConfig(String environment, int index) async {
appConfig = await appApi.getAppConfig(environment, index);
if (appConfig == null) {
throw Exception("Unable to get app config");
}
return appConfig;
}