GoogleAdsSearchads360V23ServicesPlannableTargeting.fromJson constructor
GoogleAdsSearchads360V23ServicesPlannableTargeting.fromJson(
- Map json_
Implementation
GoogleAdsSearchads360V23ServicesPlannableTargeting.fromJson(core.Map json_)
: this(
ageRanges: (json_['ageRanges'] as core.List?)
?.map((value) => value as core.String)
.toList(),
devices: (json_['devices'] as core.List?)
?.map(
(value) => GoogleAdsSearchads360V23CommonDeviceInfo.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
genders: (json_['genders'] as core.List?)
?.map(
(value) => GoogleAdsSearchads360V23CommonGenderInfo.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
networks: (json_['networks'] as core.List?)
?.map((value) => value as core.String)
.toList(),
surfaceTargeting: json_.containsKey('surfaceTargeting')
? GoogleAdsSearchads360V23ServicesSurfaceTargetingCombinations.fromJson(
json_['surfaceTargeting']
as core.Map<core.String, core.dynamic>,
)
: null,
youtubeSelectLineups: (json_['youtubeSelectLineups'] as core.List?)
?.map(
(value) =>
GoogleAdsSearchads360V23ServicesYouTubeSelectLineUp.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
);