PriceComponent constructor
PriceComponent({})
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;
}