getBaseUrl static method

dynamic getBaseUrl()

Implementation

static getBaseUrl() async {
  final String response = await rootBundle.loadString('env.json');
  final data = await json.decode(response);

  if (data['APP_PROD_ENV']) {
    return data['API_PROD_BASE_URL'];
  } else {
    return data['API_DEV_BASE_URL'];
  }
}