AdsResponse.fromJson constructor

AdsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

AdsResponse.fromJson(Map<String, dynamic> json) {
  adId = json['adId'];
  advertiser = json['advertiser'];
  bidPrice = json['bidPrice'];
  clearingPrice = json['clearingPrice'];
  clearingPriceSupplyCUR = json['clearingPriceSupplyCUR'];
  clearingPriceUSD = json['clearingPriceUSD'];
  clickThrough = json['clickThrough'];
  demand = json['demand'];
  if (json['pixels'] != null) {
    pixels = <Pixels>[];
    json['pixels'].forEach((v) {
      pixels!.add(new Pixels.fromJson(v));
    });
  }
  type = json['type'];
  url = json['url'];
}