getUserDetails method
Future
getUserDetails(
{ - dynamic userpackageId,
})
Implementation
Future getUserDetails({userpackageId}) async {
var decodedResponse;
try {
http.Response response = await http.get(
Uri.parse(
"${SDK_BASE_URL}diagnostics_api/account_package${userpackageId == null || userpackageId == 'null' ? '' : '/${userpackageId}'}"),
headers: {
"Authorization": "${SignUpController.currentUserToken}",
},
);
decodedResponse = json.decode(response.body);
FinalMyAccAllData = decodedResponse['data'];
profileMobile = decodedResponse['data']['profile_details']['mobile'];
} catch (e) {
errorListner(
apiname:
'diagnostics_api/account_package${userpackageId != null ? '/${userpackageId}' : ''}',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}');
}
}