call static method

Future<ApiCallResponse> call({
  1. String? platform = '',
  2. String? tenant = '',
  3. String? authorization = '',
  4. String? baseUrl = '',
  5. String? transactionType = '',
  6. String? transactionReference = '',
  7. int? pageSize,
  8. int? pageIndex,
})

Implementation

static Future<ApiCallResponse> call({
  String? platform = '',
  String? tenant = '',
  String? authorization = '',
  String? baseUrl = '',
  String? transactionType = '',
  String? transactionReference = '',
  int? pageSize,
  int? pageIndex,
}) async {
  return ApiManager.instance.makeApiCall(
    callName: 'getNotifications',
    apiUrl: '${baseUrl}api/blayzNotification/api/Notification/fetch',
    callType: ApiCallType.GET,
    headers: {
      'accept': 'application/json',
      'platform': '${platform}',
      'tenant': '${tenant}',
      'Authorization': '${authorization}',
    },
    params: {},
    returnBody: true,
    encodeBodyUtf8: false,
    decodeUtf8: false,
    cache: false,
  );
}