call static method

Future<ApiCallResponse> call({
  1. String? platform = '',
  2. String? tenant = '',
  3. String? authorization = '',
  4. String? baseUrl = '',
  5. String? pin = '',
  6. String? biometric = '',
  7. String? pushNotificationType = '',
  8. bool? sendPushNotification,
  9. bool? isFaceMatched,
})

Implementation

static Future<ApiCallResponse> call({
  String? platform = '',
  String? tenant = '',
  String? authorization = '',
  String? baseUrl = '',
  String? pin = '',
  String? biometric = '',
  String? pushNotificationType = '',
  bool? sendPushNotification,
  bool? isFaceMatched,
}) {
  final body = '''
{
"pin": "${pin}",
"biometric": "${biometric}",
"pushNotificationType": "${pushNotificationType}",
"sendPushNotification": ${sendPushNotification},
"isFaceMatched": ${isFaceMatched}

}''';
  return ApiManager.instance.makeApiCall(
    callName: 'transactionAuth',
    apiUrl: '${baseUrl}api/blayzAuth/api/Auth/transaction',
    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,
  );
}