call static method
Implementation
static Future<ApiCallResponse> call({
String? platform = '',
String? tenant = '',
String? authorization = '',
String? baseUrl = '',
String? transactionId = '',
String? insuranceCompany = '',
}) async {
final body = '''
{
"transactionId": "${transactionId}",
"insuranceCompany": "${insuranceCompany}"
}''';
return ApiManager.instance.makeApiCall(
callName: 'addInsurance',
apiUrl: '${baseUrl}api/blayzPay/loanApplication/add/insurance',
callType: ApiCallType.POST,
headers: {
'accept': 'application/json',
'platform': '${platform}',
'Authorization': '${authorization}',
'tenant': '${tenant}',
},
params: {},
body: body,
bodyType: BodyType.JSON,
returnBody: true,
encodeBodyUtf8: false,
decodeUtf8: false,
cache: false,
);
}