SearchQuery constructor

SearchQuery({
  1. ContinuationToken? continuation,
  2. StringValue? query,
  3. Iterable<Tag>? tags,
  4. AccountId? sourceAccountId,
  5. Credit? priceFrom,
  6. Credit? priceTo,
  7. Iterable<String>? orderBy,
  8. Iterable<String>? facets,
  9. AccountId? excludeAccountId,
  10. Barcode? barcode,
  11. Int32Value? conditionAbove,
  12. bool? saveAsLatest,
  13. bool? featured,
  14. StringValue? shareUrl,
  15. StringValue? hiddenQuery,
  16. StringValue? storeId,
  17. Iterable<SearchObjectBadge_BadgeType>? withBadge,
  18. StringValue? relatedUrl,
  19. Vector? relatedVector,
  20. Vector? collectionVector,
  21. StringValue? group,
})

Implementation

factory SearchQuery({
  $2.ContinuationToken? continuation,
  $3.StringValue? query,
  $core.Iterable<$2.Tag>? tags,
  $0.AccountId? sourceAccountId,
  $2.Credit? priceFrom,
  $2.Credit? priceTo,
  $core.Iterable<$core.String>? orderBy,
  $core.Iterable<$core.String>? facets,
  $0.AccountId? excludeAccountId,
  $2.Barcode? barcode,
  $3.Int32Value? conditionAbove,
  $core.bool? saveAsLatest,
  $core.bool? featured,
  $3.StringValue? shareUrl,
  $3.StringValue? hiddenQuery,
  $3.StringValue? storeId,
  $core.Iterable<SearchObjectBadge_BadgeType>? withBadge,
  $3.StringValue? relatedUrl,
  $2.Vector? relatedVector,
  $2.Vector? collectionVector,
  $3.StringValue? group,
}) {
  final result = create();
  if (continuation != null) result.continuation = continuation;
  if (query != null) result.query = query;
  if (tags != null) result.tags.addAll(tags);
  if (sourceAccountId != null) result.sourceAccountId = sourceAccountId;
  if (priceFrom != null) result.priceFrom = priceFrom;
  if (priceTo != null) result.priceTo = priceTo;
  if (orderBy != null) result.orderBy.addAll(orderBy);
  if (facets != null) result.facets.addAll(facets);
  if (excludeAccountId != null) result.excludeAccountId = excludeAccountId;
  if (barcode != null) result.barcode = barcode;
  if (conditionAbove != null) result.conditionAbove = conditionAbove;
  if (saveAsLatest != null) result.saveAsLatest = saveAsLatest;
  if (featured != null) result.featured = featured;
  if (shareUrl != null) result.shareUrl = shareUrl;
  if (hiddenQuery != null) result.hiddenQuery = hiddenQuery;
  if (storeId != null) result.storeId = storeId;
  if (withBadge != null) result.withBadge.addAll(withBadge);
  if (relatedUrl != null) result.relatedUrl = relatedUrl;
  if (relatedVector != null) result.relatedVector = relatedVector;
  if (collectionVector != null) result.collectionVector = collectionVector;
  if (group != null) result.group = group;
  return result;
}