AdQuery constructor

AdQuery({
  1. ContinuationToken? continuation,
  2. AccountId? accountId,
  3. Iterable<Ad_AdState>? states,
  4. Iterable<Tag>? tags,
  5. String? titleContains,
  6. Iterable<UserId>? scannedBy,
  7. Iterable<AdQuery_AdOrdering>? orderBy,
  8. bool? estimateTotalCount,
  9. Iterable<AccountId>? exclude,
  10. Barcode? barcode,
  11. Timestamp? expiresBefore,
  12. Timestamp? lastPriceChangeBefore,
  13. Timestamp? nextPriceChangeBefore,
  14. BoolValue? hasAutomaticPricing,
  15. BoolValue? hasVATOnProduct,
  16. Timestamp? lastUpdatedBefore,
  17. Int32Value? minCondition,
  18. BoolValue? hasGroupKey,
})

Implementation

factory AdQuery({
  $3.ContinuationToken? continuation,
  $0.AccountId? accountId,
  $core.Iterable<Ad_AdState>? states,
  $core.Iterable<$3.Tag>? tags,
  $core.String? titleContains,
  $core.Iterable<$0.UserId>? scannedBy,
  $core.Iterable<AdQuery_AdOrdering>? orderBy,
  $core.bool? estimateTotalCount,
  $core.Iterable<$0.AccountId>? exclude,
  $3.Barcode? barcode,
  $5.Timestamp? expiresBefore,
  $5.Timestamp? lastPriceChangeBefore,
  $5.Timestamp? nextPriceChangeBefore,
  $1.BoolValue? hasAutomaticPricing,
  $1.BoolValue? hasVATOnProduct,
  $5.Timestamp? lastUpdatedBefore,
  $1.Int32Value? minCondition,
  $1.BoolValue? hasGroupKey,
}) {
  final result = create();
  if (continuation != null) result.continuation = continuation;
  if (accountId != null) result.accountId = accountId;
  if (states != null) result.states.addAll(states);
  if (tags != null) result.tags.addAll(tags);
  if (titleContains != null) result.titleContains = titleContains;
  if (scannedBy != null) result.scannedBy.addAll(scannedBy);
  if (orderBy != null) result.orderBy.addAll(orderBy);
  if (estimateTotalCount != null)
    result.estimateTotalCount = estimateTotalCount;
  if (exclude != null) result.exclude.addAll(exclude);
  if (barcode != null) result.barcode = barcode;
  if (expiresBefore != null) result.expiresBefore = expiresBefore;
  if (lastPriceChangeBefore != null)
    result.lastPriceChangeBefore = lastPriceChangeBefore;
  if (nextPriceChangeBefore != null)
    result.nextPriceChangeBefore = nextPriceChangeBefore;
  if (hasAutomaticPricing != null)
    result.hasAutomaticPricing = hasAutomaticPricing;
  if (hasVATOnProduct != null) result.hasVATOnProduct = hasVATOnProduct;
  if (lastUpdatedBefore != null) result.lastUpdatedBefore = lastUpdatedBefore;
  if (minCondition != null) result.minCondition = minCondition;
  if (hasGroupKey != null) result.hasGroupKey = hasGroupKey;
  return result;
}