toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['adId'] = this.adId;
data['advertiser'] = this.advertiser;
data['bidPrice'] = this.bidPrice;
data['clearingPrice'] = this.clearingPrice;
data['clearingPriceSupplyCUR'] = this.clearingPriceSupplyCUR;
data['clearingPriceUSD'] = this.clearingPriceUSD;
data['clickThrough'] = this.clickThrough;
data['demand'] = this.demand;
if (this.pixels != null) {
data['pixels'] = this.pixels!.map((v) => v.toJson()).toList();
}
data['type'] = this.type;
data['url'] = this.url;
return data;
}