RecommendInput constructor

RecommendInput({
  1. Iterable<VectorInput>? positive,
  2. Iterable<VectorInput>? negative,
  3. RecommendStrategy? strategy,
})

Implementation

factory RecommendInput({
  $core.Iterable<VectorInput>? positive,
  $core.Iterable<VectorInput>? negative,
  RecommendStrategy? strategy,
}) {
  final $result = create();
  if (positive != null) {
    $result.positive.addAll(positive);
  }
  if (negative != null) {
    $result.negative.addAll(negative);
  }
  if (strategy != null) {
    $result.strategy = strategy;
  }
  return $result;
}