ProductSnippet constructor
ProductSnippet({})
Implementation
factory ProductSnippet({
$core.String? title,
$core.String? description,
$core.String? link,
$core.String? imageLink,
$core.String? itemGroupId,
Price? price,
Price? salePrice,
Price? costOfGoodsSold,
$core.String? code,
$core.String? categoryId,
}) {
final _result = create();
if (title != null) {
_result.title = title;
}
if (description != null) {
_result.description = description;
}
if (link != null) {
_result.link = link;
}
if (imageLink != null) {
_result.imageLink = imageLink;
}
if (itemGroupId != null) {
_result.itemGroupId = itemGroupId;
}
if (price != null) {
_result.price = price;
}
if (salePrice != null) {
_result.salePrice = salePrice;
}
if (costOfGoodsSold != null) {
_result.costOfGoodsSold = costOfGoodsSold;
}
if (code != null) {
_result.code = code;
}
if (categoryId != null) {
_result.categoryId = categoryId;
}
return _result;
}