NativeContent.fromJson constructor
NativeContent.fromJson(
- Map json_
Implementation
NativeContent.fromJson(core.Map json_)
: this(
advertiserName: json_.containsKey('advertiserName')
? json_['advertiserName'] as core.String
: null,
appIcon: json_.containsKey('appIcon')
? Image.fromJson(
json_['appIcon'] as core.Map<core.String, core.dynamic>)
: null,
body: json_.containsKey('body') ? json_['body'] as core.String : null,
callToAction: json_.containsKey('callToAction')
? json_['callToAction'] as core.String
: null,
clickLinkUrl: json_.containsKey('clickLinkUrl')
? json_['clickLinkUrl'] as core.String
: null,
clickTrackingUrl: json_.containsKey('clickTrackingUrl')
? json_['clickTrackingUrl'] as core.String
: null,
headline: json_.containsKey('headline')
? json_['headline'] as core.String
: null,
image: json_.containsKey('image')
? Image.fromJson(
json_['image'] as core.Map<core.String, core.dynamic>)
: null,
logo: json_.containsKey('logo')
? Image.fromJson(
json_['logo'] as core.Map<core.String, core.dynamic>)
: null,
priceDisplayText: json_.containsKey('priceDisplayText')
? json_['priceDisplayText'] as core.String
: null,
starRating: json_.containsKey('starRating')
? (json_['starRating'] as core.num).toDouble()
: null,
videoUrl: json_.containsKey('videoUrl')
? json_['videoUrl'] as core.String
: null,
videoVastXml: json_.containsKey('videoVastXml')
? json_['videoVastXml'] as core.String
: null,
);