$DfpSettings.fromJson constructor Null safety

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