SearchQuery constructor
SearchQuery({
- ContinuationToken? continuation,
- StringValue? query,
- Iterable<
Tag> ? tags, - AccountId? sourceAccountId,
- Credit? priceFrom,
- Credit? priceTo,
- Iterable<
String> ? orderBy, - Iterable<
String> ? facets, - AccountId? excludeAccountId,
- Barcode? barcode,
- Int32Value? conditionAbove,
- bool? saveAsLatest,
- bool? featured,
- StringValue? storeId,
- Iterable<
SearchObjectBadge_BadgeType> ? withBadge, - Vector? collectionVector,
- 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;
}