ProductSnippet constructor

ProductSnippet({
  1. String? title,
  2. String? description,
  3. String? link,
  4. String? imageLink,
  5. String? itemGroupId,
  6. Price? price,
  7. Price? salePrice,
  8. Price? costOfGoodsSold,
  9. String? code,
  10. String? categoryId,
})

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;
}