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