PromotionFeedItem constructor
PromotionFeedItem({
- PromotionId? promotionId,
- String? title,
- StringValue? description,
- Iterable<
PromotionProduct> ? products, - 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;
}