CreativeSize.fromJson constructor
CreativeSize.fromJson(
- Map _json
Implementation
CreativeSize.fromJson(core.Map _json)
: this(
allowedFormats: _json.containsKey('allowedFormats')
? (_json['allowedFormats'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
companionSizes: _json.containsKey('companionSizes')
? (_json['companionSizes'] as core.List)
.map((value) => Size.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
creativeSizeType: _json.containsKey('creativeSizeType')
? _json['creativeSizeType'] as core.String
: null,
nativeTemplate: _json.containsKey('nativeTemplate')
? _json['nativeTemplate'] as core.String
: null,
size: _json.containsKey('size')
? Size.fromJson(
_json['size'] as core.Map<core.String, core.dynamic>)
: null,
skippableAdType: _json.containsKey('skippableAdType')
? _json['skippableAdType'] as core.String
: null,
);