claimSubmissionKYCDocList method

dynamic claimSubmissionKYCDocList()

Implementation

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