AdUnit.fromJson constructor

AdUnit.fromJson(
  1. Map json_
)

Implementation

AdUnit.fromJson(core.Map json_)
    : this(
        contentAdsSettings: json_.containsKey('contentAdsSettings')
            ? ContentAdsSettings.fromJson(json_['contentAdsSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        reportingDimensionId: json_.containsKey('reportingDimensionId')
            ? json_['reportingDimensionId'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );