Item_ constructor

Item_({
  1. String? id,
  2. Vector_? vector,
  3. Iterable<Metadata_>? metadata,
})

Implementation

factory Item_({
  $core.String? id,
  Vector_? vector,
  $core.Iterable<Metadata_>? metadata,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (vector != null) {
    $result.vector = vector;
  }
  if (metadata != null) {
    $result.metadata.addAll(metadata);
  }
  return $result;
}