AdUnit.fromJson constructor
AdUnit.fromJson(
- Map json_
Implementation
AdUnit.fromJson(core.Map json_)
: this(
code: json_.containsKey('code') ? json_['code'] as core.String : null,
contentAdsSettings: json_.containsKey('contentAdsSettings')
? AdUnitContentAdsSettings.fromJson(json_['contentAdsSettings']
as core.Map<core.String, core.dynamic>)
: null,
customStyle: json_.containsKey('customStyle')
? AdStyle.fromJson(
json_['customStyle'] as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
mobileContentAdsSettings:
json_.containsKey('mobileContentAdsSettings')
? AdUnitMobileContentAdsSettings.fromJson(
json_['mobileContentAdsSettings']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
);