getAppConfigs method

Future<ConfigVo?> getAppConfigs(
  1. String appBaseUrl
)

Implementation

Future<ConfigVo?> getAppConfigs(String appBaseUrl) async {
  try {
    if (kDebugMode) {
      print("AppUrl===>$appBaseUrl");
    }
    var dio = await NetworkHelper().getApiClient(appBaseUrl ?? '');
    var response = await dio.post(configuration);
    return ConfigVo.fromJson(response.data);
  } catch (e) {
    if (kDebugMode) {
      print(e.toString());
    }
    return null;
  }
}