getAppConfiguration function

Future<void> getAppConfiguration()

Implementation

Future<void> getAppConfiguration() async {
  String userId = appStore.isLoggedIn && appStore.userId.validate() > 0 ? "?user_id=${appStore.userId}" : '';

  AppConfigurationModel? res = AppConfigurationModel.fromJson(await handleResponse(await buildHttpResponse("${APIEndPoint.configurations}$userId", method: HttpMethod.GET)));
  await setAppConfiguration(res);
}