getDateTimeDental method
Implementation
Future getDateTimeDental() async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse('${SDK_BASE_URL}diagnostics_api/time_slott'),
headers: {'Authorization': SignUpController.currentUserToken},
);
decodedResponse = json.decode(response.body);
GetDateTimeDental = decodedResponse['data'];
DentalDateFromApi = decodedResponse['data']['date_range'];
} catch (e) {
errorListner(
apiname: 'diagnostics_api/time_slott',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}');
}
}