ProductContentDetails constructor

ProductContentDetails({
  1. Iterable<String>? additionalImageLinks,
  2. Iterable<ProductTax>? taxes,
  3. int? quantity,
  4. Iterable<CustomAttribute>? customAttributes,
})

Implementation

factory ProductContentDetails({
  $core.Iterable<$core.String>? additionalImageLinks,
  $core.Iterable<ProductTax>? taxes,
  $core.int? quantity,
  $core.Iterable<CustomAttribute>? customAttributes,
}) {
  final _result = create();
  if (additionalImageLinks != null) {
    _result.additionalImageLinks.addAll(additionalImageLinks);
  }
  if (taxes != null) {
    _result.taxes.addAll(taxes);
  }
  if (quantity != null) {
    _result.quantity = quantity;
  }
  if (customAttributes != null) {
    _result.customAttributes.addAll(customAttributes);
  }
  return _result;
}