PriceRuleCondition constructor

PriceRuleCondition({
  1. Iterable<PriceRuleCondition>? and,
  2. Iterable<PriceRuleCondition>? or,
  3. bool? not,
  4. int? componentType,
  5. int? sKUType,
  6. StringValue? sKUValue,
  7. AccountId? provider,
  8. Credit? minValueInclTax,
  9. Credit? maxValueInclTax,
  10. Iterable<PriceTag>? tags,
})

Implementation

factory PriceRuleCondition({
  $core.Iterable<PriceRuleCondition>? and,
  $core.Iterable<PriceRuleCondition>? or,
  $core.bool? not,
  $core.int? componentType,
  $core.int? sKUType,
  $1.StringValue? sKUValue,
  $2.AccountId? provider,
  $0.Credit? minValueInclTax,
  $0.Credit? maxValueInclTax,
  $core.Iterable<PriceTag>? tags,
}) {
  final result = create();
  if (and != null) result.and.addAll(and);
  if (or != null) result.or.addAll(or);
  if (not != null) result.not = not;
  if (componentType != null) result.componentType = componentType;
  if (sKUType != null) result.sKUType = sKUType;
  if (sKUValue != null) result.sKUValue = sKUValue;
  if (provider != null) result.provider = provider;
  if (minValueInclTax != null) result.minValueInclTax = minValueInclTax;
  if (maxValueInclTax != null) result.maxValueInclTax = maxValueInclTax;
  if (tags != null) result.tags.addAll(tags);
  return result;
}