PriceContextQuery constructor

PriceContextQuery({
  1. AccountId? buyer,
  2. Iterable<VoucherCode>? vouchers,
  3. Iterable<PricingProduct>? products,
})

Implementation

factory PriceContextQuery({
  $2.AccountId? buyer,
  $core.Iterable<$2.VoucherCode>? vouchers,
  $core.Iterable<PricingProduct>? products,
}) {
  final result = create();
  if (buyer != null) result.buyer = buyer;
  if (vouchers != null) result.vouchers.addAll(vouchers);
  if (products != null) result.products.addAll(products);
  return result;
}