CreativeRestrictions.fromJson constructor

CreativeRestrictions.fromJson(
  1. Map _json
)

Implementation

CreativeRestrictions.fromJson(core.Map _json)
    : this(
        creativeFormat: _json.containsKey('creativeFormat')
            ? _json['creativeFormat'] as core.String
            : null,
        creativeSpecifications: _json.containsKey('creativeSpecifications')
            ? (_json['creativeSpecifications'] as core.List)
                .map((value) => CreativeSpecification.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        skippableAdType: _json.containsKey('skippableAdType')
            ? _json['skippableAdType'] as core.String
            : null,
      );