toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'ownerOrigin': ownerOrigin,
    'name': name,
    'expirationTime': expirationTime.toJson(),
    'joiningOrigin': joiningOrigin,
    'trustedBiddingSignalsKeys': [...trustedBiddingSignalsKeys],
    'ads': ads.map((e) => e.toJson()).toList(),
    'adComponents': adComponents.map((e) => e.toJson()).toList(),
    if (biddingUrl != null) 'biddingUrl': biddingUrl,
    if (biddingWasmHelperUrl != null)
      'biddingWasmHelperUrl': biddingWasmHelperUrl,
    if (updateUrl != null) 'updateUrl': updateUrl,
    if (trustedBiddingSignalsUrl != null)
      'trustedBiddingSignalsUrl': trustedBiddingSignalsUrl,
    if (userBiddingSignals != null) 'userBiddingSignals': userBiddingSignals,
  };
}