getDignosticsCategory method

Future getDignosticsCategory()

Implementation

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