PriceRuleIndex constructor
PriceRuleIndex({
- Iterable<
MapEntry< ? rulesByComponentType,int, PriceRuleIndices> > - Iterable<
MapEntry< ? rulesBySKUType,int, PriceRuleIndices> > - Iterable<
MapEntry< ? rulesBySKU,String, PriceRuleIndices> > - Iterable<
MapEntry< ? rulesByProvider,String, PriceRuleIndices> > - Iterable<
MapEntry< ? rulesByTag,String, PriceRuleIndices> > - PriceRuleIndices? generalRuleIndices,
Implementation
factory PriceRuleIndex({
$core.Iterable<$core.MapEntry<$core.int, PriceRuleIndices>>?
rulesByComponentType,
$core.Iterable<$core.MapEntry<$core.int, PriceRuleIndices>>? rulesBySKUType,
$core.Iterable<$core.MapEntry<$core.String, PriceRuleIndices>>? rulesBySKU,
$core.Iterable<$core.MapEntry<$core.String, PriceRuleIndices>>?
rulesByProvider,
$core.Iterable<$core.MapEntry<$core.String, PriceRuleIndices>>? rulesByTag,
PriceRuleIndices? generalRuleIndices,
}) {
final result = create();
if (rulesByComponentType != null)
result.rulesByComponentType.addEntries(rulesByComponentType);
if (rulesBySKUType != null)
result.rulesBySKUType.addEntries(rulesBySKUType);
if (rulesBySKU != null) result.rulesBySKU.addEntries(rulesBySKU);
if (rulesByProvider != null)
result.rulesByProvider.addEntries(rulesByProvider);
if (rulesByTag != null) result.rulesByTag.addEntries(rulesByTag);
if (generalRuleIndices != null)
result.generalRuleIndices = generalRuleIndices;
return result;
}