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,
      );