getHomeData method
dynamic
getHomeData()
Implementation
getHomeData() async {
var decodedResponse;
http.Response response = await http
.get(Uri.parse('${SDK_BASE_URL}home_api/medibhai_app_index'), headers: {
"Authorization": SignUpController.currentUserToken,
});
decodedResponse = json.decode(response.body);
homeindexAllData = json.decode(response.body);
videos = decodedResponse['videos']['status'];
VideosArr = decodedResponse['videos']['videos'];
notificationCount.value = decodedResponse['notification_count'];
razorPay_Key = decodedResponse['razorpay_keys']['key'];
packagesList = decodedResponse['my_package']['packages'];
homeBannerList = decodedResponse['Home_slider'];
}