cancelConsultation method
Cancels the consultation with the given consultationID
.
Returns true if the API call is successful.
Implementation
Future<bool> cancelConsultation(int consultationID) async {
final response = await callApi(
endpoint: 'consultations/$consultationID/cancel', method: 'post');
if (response.statusCode == 200) {
return true;
} else {
throw Exception(response);
}
}