DfpSettings.fromJson constructor

DfpSettings.fromJson(
  1. Map json_
)

Implementation

DfpSettings.fromJson(core.Map json_)
    : this(
        dfpNetworkCode: json_.containsKey('dfpNetworkCode')
            ? json_['dfpNetworkCode'] as core.String
            : null,
        dfpNetworkName: json_.containsKey('dfpNetworkName')
            ? json_['dfpNetworkName'] as core.String
            : null,
        programmaticPlacementAccepted:
            json_.containsKey('programmaticPlacementAccepted')
                ? json_['programmaticPlacementAccepted'] as core.bool
                : null,
        pubPaidPlacementAccepted:
            json_.containsKey('pubPaidPlacementAccepted')
                ? json_['pubPaidPlacementAccepted'] as core.bool
                : null,
        publisherPortalOnly: json_.containsKey('publisherPortalOnly')
            ? json_['publisherPortalOnly'] as core.bool
            : null,
      );