callScanovate static method Null safety

Future<String?> callScanovate(
  1. bool verification,
  2. String documentType,
  3. int productId,
  4. String projectName,
  5. String apiKey,
  6. String urlSdk,
  7. String documentNumber,
  8. String userName,
  9. String password,
  10. {String riskId = '1'}
)

Call the scanovate API.

@param verification verification field. @param documentType the documentType field. @param documentType the productId field. @param documentType the projectName field. @param documentType the apiKey field. @param documentType the urlSdk field. @param documentType the documentNumber field. @param documentType the codeFinger field. @param documentType the userName field. @param documentType the password field. @returns The response in json string format.

Implementation

static Future<String?> callScanovate(
  bool verification,
  String documentType,
  int productId,
  String projectName,
  String apiKey,
  String urlSdk,
  String documentNumber,
  String userName,
  String password, {
  String riskId = '1',
}) async {
  final String? response = await _channel.invokeMethod('callScanovate', {
    "data": {
      'documentType': documentType,
      'productId': productId,
      'projectName': projectName,
      'apiKey': apiKey,
      'urlSdk': urlSdk,
      'documentNumber': documentNumber,
      'verification': verification,
      'userName': userName,
      'password': password,
      'riskId': riskId,
    }
  });
  return response;
}