EscalationMatrix method

Future EscalationMatrix()

Implementation

Future EscalationMatrix() async {
  var decodedResponse;
  final ApiBody = {
    "policy_no": policyList[indexvalue]['policy_no'].toString()
  };
  try {
    final response = await http.post(
        Uri.parse(
            '${SDK_BASE_URL}claim_adminpanel/claim_api/escalation_matrix'),
        body: ApiBody,
        headers: {"Authorization": SignUpController.currentUserToken});
    decodedResponse = json.decode(response.body);
    escalationmatrixList = decodedResponse['support_contacts'];
  } catch (e) {
    errorListner(
        apiname: 'claim_adminpanel/claim_api/escalation_matrix',
        responsed: "${decodedResponse}",
        request: '${ApiBody}',
        app_error: '${e}');
  }
}