AdUnit.fromJson constructor

AdUnit.fromJson(
  1. Map json_
)

Implementation

AdUnit.fromJson(core.Map json_)
    : this(
        adFormat: json_.containsKey('adFormat')
            ? json_['adFormat'] as core.String
            : null,
        adTypes: json_.containsKey('adTypes')
            ? (json_['adTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        adUnitId: json_.containsKey('adUnitId')
            ? json_['adUnitId'] as core.String
            : null,
        appId:
            json_.containsKey('appId') ? json_['appId'] as core.String : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );