PromotionFeedItem constructor

PromotionFeedItem({
  1. PromotionId? promotionId,
  2. String? title,
  3. StringValue? description,
  4. Iterable<PromotionProduct>? products,
  5. Any? details,
})

Implementation

factory PromotionFeedItem({
  $1.PromotionId? promotionId,
  $core.String? title,
  $2.StringValue? description,
  $core.Iterable<PromotionProduct>? products,
  $5.Any? details,
}) {
  final result = create();
  if (promotionId != null) result.promotionId = promotionId;
  if (title != null) result.title = title;
  if (description != null) result.description = description;
  if (products != null) result.products.addAll(products);
  if (details != null) result.details = details;
  return result;
}