TeleConsultationList method

dynamic TeleConsultationList()

Implementation

TeleConsultationList() async {
  var decodedResponse;
  try {
    http.Response response = await http
        .get(Uri.parse('${SDK_BASE_URL}teleconsultation-list'), headers: {
      "Authorization": SignUpController.currentUserToken,
    });
    decodedResponse = json.decode(response.body);
    teleconsultation = decodedResponse['tele_departments']['teleconsultaton'];
    symptoms = decodedResponse['tele_departments']['symptoms'];
    pendingamount = decodedResponse['wallet']['module_pending'];
  } catch (e) {
    ErrorListner(
        apiname: 'teleconsultation-list',
        responsed: "${decodedResponse}",
        request: '',
        app_error: '${e}');
  }
}