toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dfpNetworkCode != null) 'dfpNetworkCode': dfpNetworkCode!,
      if (dfpNetworkName != null) 'dfpNetworkName': dfpNetworkName!,
      if (programmaticPlacementAccepted != null)
        'programmaticPlacementAccepted': programmaticPlacementAccepted!,
      if (pubPaidPlacementAccepted != null)
        'pubPaidPlacementAccepted': pubPaidPlacementAccepted!,
      if (publisherPortalOnly != null)
        'publisherPortalOnly': publisherPortalOnly!,
    };