Creative.fromJson constructor
Creative.fromJson(
- Map json_
Implementation
Creative.fromJson(core.Map json_)
: this(
accountId: json_['accountId'] as core.String?,
adChoicesDestinationUrl:
json_['adChoicesDestinationUrl'] as core.String?,
advertiserName: json_['advertiserName'] as core.String?,
agencyId: json_['agencyId'] as core.String?,
apiUpdateTime: json_['apiUpdateTime'] as core.String?,
creativeFormat: json_['creativeFormat'] as core.String?,
creativeId: json_['creativeId'] as core.String?,
creativeServingDecision: json_.containsKey('creativeServingDecision')
? CreativeServingDecision.fromJson(
json_['creativeServingDecision']
as core.Map<core.String, core.dynamic>)
: null,
dealIds: (json_['dealIds'] as core.List?)
?.map((value) => value as core.String)
.toList(),
declaredAttributes: (json_['declaredAttributes'] as core.List?)
?.map((value) => value as core.String)
.toList(),
declaredClickThroughUrls:
(json_['declaredClickThroughUrls'] as core.List?)
?.map((value) => value as core.String)
.toList(),
declaredRestrictedCategories:
(json_['declaredRestrictedCategories'] as core.List?)
?.map((value) => value as core.String)
.toList(),
declaredVendorIds: (json_['declaredVendorIds'] as core.List?)
?.map((value) => value as core.int)
.toList(),
html: json_.containsKey('html')
? HtmlContent.fromJson(
json_['html'] as core.Map<core.String, core.dynamic>)
: null,
impressionTrackingUrls:
(json_['impressionTrackingUrls'] as core.List?)
?.map((value) => value as core.String)
.toList(),
name: json_['name'] as core.String?,
native: json_.containsKey('native')
? NativeContent.fromJson(
json_['native'] as core.Map<core.String, core.dynamic>)
: null,
renderUrl: json_['renderUrl'] as core.String?,
restrictedCategories: (json_['restrictedCategories'] as core.List?)
?.map((value) => value as core.String)
.toList(),
version: json_['version'] as core.int?,
video: json_.containsKey('video')
? VideoContent.fromJson(
json_['video'] as core.Map<core.String, core.dynamic>)
: null,
);