fetchData method
Implementation
Future fetchData() async {
PackageInfo packageInfo = await PackageInfo.fromPlatform();
String packageName = packageInfo.packageName;
String url = "http://erpsystem.sattechnolab.com/api/app_json?bundleName=" +
packageName;
final response = await http.get(Uri.parse(url));
admodel = Admodel.fromJson(jsonDecode(response.body));
}