DynamicRules.fromJson constructor
DynamicRules.fromJson(
- Map json_
Implementation
DynamicRules.fromJson(core.Map json_)
: this(
autoTargetedFieldIds:
(json_['autoTargetedFieldIds'] as core.List?)
?.map((value) => value as core.int)
.toList(),
customRules:
(json_['customRules'] as core.List?)
?.map(
(value) => CustomRule.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
customValueFields:
(json_['customValueFields'] as core.List?)
?.map(
(value) => CustomValueField.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
proximityFilter:
json_.containsKey('proximityFilter')
? ProximityFilter.fromJson(
json_['proximityFilter']
as core.Map<core.String, core.dynamic>,
)
: null,
remarketingValueAttributes:
(json_['remarketingValueAttributes'] as core.List?)
?.map(
(value) => RemarketingValueAttribute.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
rotationType: json_['rotationType'] as core.String?,
ruleType: json_['ruleType'] as core.String?,
weightFieldId: json_['weightFieldId'] as core.int?,
);