gettingClaimSubmissionDetails method

dynamic gettingClaimSubmissionDetails({
  1. dynamic intimationID,
})

Implementation

gettingClaimSubmissionDetails({intimationID}) async {
  var checkStatusCode;

  try {
    http.Response response = await http.post(
        Uri.parse('${choice_Base_Url}claim_submission_details_by_intimateID'),
        body: {
          "intimation_id": intimationID.toString()
        },
        headers: {
          "Authorization": choiceToken,
        });
    TokenRefresh(refreshtoken: response.headers['authorization'].toString());
    checkStatusCode = response.statusCode;
    var decodedResponse = await json.decode(response.body);
    GetAllClaimSubData = await decodedResponse;
  } catch (err) {
    AutoLogoutThreeTry();
    if (checkStatusCode == 401) {
      await gettingClaimSubmissionDetails(
          intimationID: intimationID.toString());
      (commonContext as Element).reassemble();
    } else {}
  }
}