moderation method

TransformationData moderation(
  1. int? minpimumconfidence
)

Method for Detect objects and text in images @param Minimum Confidence int (Default: 55) @return TransformationData.

Implementation

TransformationData moderation(
  int? minpimumconfidence,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (minpimumconfidence != null) {
    values['c'] = minpimumconfidence.toString();
  }

  return TransformationData(
      plugin: 'awsRek', name: 'moderation', values: values);
}