VideoPerformanceAd.fromJson constructor
VideoPerformanceAd.fromJson(
- Map json_
Implementation
VideoPerformanceAd.fromJson(core.Map json_)
: this(
actionButtonLabels: json_.containsKey('actionButtonLabels')
? (json_['actionButtonLabels'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
companionBanners: json_.containsKey('companionBanners')
? (json_['companionBanners'] as core.List)
.map((value) => ImageAsset.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
customParameters: json_.containsKey('customParameters')
? (json_['customParameters']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
descriptions: json_.containsKey('descriptions')
? (json_['descriptions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
displayUrlBreadcrumb1: json_.containsKey('displayUrlBreadcrumb1')
? json_['displayUrlBreadcrumb1'] as core.String
: null,
displayUrlBreadcrumb2: json_.containsKey('displayUrlBreadcrumb2')
? json_['displayUrlBreadcrumb2'] as core.String
: null,
domain: json_.containsKey('domain')
? json_['domain'] as core.String
: null,
finalUrl: json_.containsKey('finalUrl')
? json_['finalUrl'] as core.String
: null,
headlines: json_.containsKey('headlines')
? (json_['headlines'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
longHeadlines: json_.containsKey('longHeadlines')
? (json_['longHeadlines'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
trackingUrl: json_.containsKey('trackingUrl')
? json_['trackingUrl'] as core.String
: null,
videos: json_.containsKey('videos')
? (json_['videos'] as core.List)
.map((value) => YoutubeVideoDetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);