call static method

Future<ApiCallResponse?> call({
  1. String? pushNotificationType = '',
  2. String? baseUrl = '',
  3. String? platform = '',
  4. String? tenant = '',
  5. String? authorization = '',
})

Implementation

static Future<ApiCallResponse?> call({
  String? pushNotificationType = '',
  String? baseUrl = '',
    String? platform = '',
  String? tenant = '',
  String? authorization = '',
}) {
  final body = '''
{
 "PushNotificationType": "${pushNotificationType}",
}''';
  return ApiManager.instance.makeApiCall(
    callName: 'resendotptrans',
    apiUrl: '${baseUrl}api/blayzAuth/api/Auth/transaction-otp/resend-otp',
    callType: ApiCallType.POST,
    headers: {
    'platform': '${platform}',
      'tenant': '${tenant}',
      'accept': 'application/json',
      'Authorization': '${authorization}',
    },
    params: {'PushNotificationType': pushNotificationType},
    body: body,
    bodyType: BodyType.JSON,
    returnBody: true,
  );
}