GetAppointmentTimeSlot method
Future
GetAppointmentTimeSlot(
{ - dynamic date,
- dynamic departmentId,
})
Implementation
Future GetAppointmentTimeSlot({date, departmentId}) async {
getTimeSlot.clear();
final response = await http.post(
Uri.parse('${SDK_BASE_URL}api/teleconsult_api/get_time_slot'),
body: {
"date": "${date}",
"dept_id": departmentId
},
headers: {
"Authorization": SignUpController.currentUserToken,
});
var decodedResponse = json.decode(response.body);
getTimeSlot = await decodedResponse['time_slot'];
}