getConfig method

Future<ConfigResponse> getConfig(
  1. String environment
)

Implementation

Future<ConfigResponse> getConfig(String environment) async {
  var apiURL = "";
  if(environment == "UAT"){
    apiURL = "https://mtpre.adityabirlahealth.com/abw/dha-conf";
  }
  else{
    apiURL = "https://wellnesslayerapis.adityabirlahealth.com/abw/dha-conf";
  }
  NetworkHelper network = NetworkHelper(url: apiURL);
  return network.getData();
}