getcMemberList method

Future getcMemberList()

Implementation

Future getcMemberList() async {
  var decodedResponse;
  try {
    final response = await http.get(
      Uri.parse('${WELLNESS_URL}api/diagnostic/fetch-members'),
      headers: {'Authorization': currentUserToken},
    );
    decodedResponse = json.decode(response.body);
    FetchMemberList = await decodedResponse['response'];
    SelectedSaveMemberTests.clear();
  } catch (e) {
    ErrorListner(
        apiname: 'api/diagnostic/fetch-members',
        responsed: "${decodedResponse}",
        request: "",
        app_error: '${e}');
  }
}