MembersCovered method

Future MembersCovered()

Implementation

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