PriceComponent constructor

PriceComponent({
  1. int? componentType,
  2. StringValue? title,
  3. Credit? value,
  4. Credit? tax,
  5. Credit? valueInclTax,
  6. DoubleValue? quantity,
  7. VATRate? vATRate,
  8. AccountId? provider,
  9. SKU? sKU,
  10. Iterable<PriceTag>? tags,
})

Implementation

factory PriceComponent({
  $core.int? componentType,
  $1.StringValue? title,
  $0.Credit? value,
  $0.Credit? tax,
  $0.Credit? valueInclTax,
  $1.DoubleValue? quantity,
  $0.VATRate? vATRate,
  $2.AccountId? provider,
  $2.SKU? sKU,
  $core.Iterable<PriceTag>? tags,
}) {
  final result = create();
  if (componentType != null) result.componentType = componentType;
  if (title != null) result.title = title;
  if (value != null) result.value = value;
  if (tax != null) result.tax = tax;
  if (valueInclTax != null) result.valueInclTax = valueInclTax;
  if (quantity != null) result.quantity = quantity;
  if (vATRate != null) result.vATRate = vATRate;
  if (provider != null) result.provider = provider;
  if (sKU != null) result.sKU = sKU;
  if (tags != null) result.tags.addAll(tags);
  return result;
}