PriceRule constructor

PriceRule({
  1. String? title,
  2. PriceRuleCondition? condition,
  3. Iterable<PriceRuleAction>? actions,
})

Implementation

factory PriceRule({
  $core.String? title,
  PriceRuleCondition? condition,
  $core.Iterable<PriceRuleAction>? actions,
}) {
  final result = create();
  if (title != null) result.title = title;
  if (condition != null) result.condition = condition;
  if (actions != null) result.actions.addAll(actions);
  return result;
}