OfferList.fromJson constructor

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

Implementation

OfferList.fromJson(Map<String, dynamic> json) {
  pogId = json['pogId'];
  offerId = json['offerId'];
  pogName = json['pogName'];
  offerName = json['offerName'];
  offerDescription = json['offerDescription'];
  isPriceOverride = json['isPriceOverride'];
  price = json['price'] != null ? new Price.fromJson(json['price']) : null;
  imageUrl = json['imageUrl'];
  if (json['details'] != null) {
    details = <Details>[];
    json['details'].forEach((v) {
      details!.add(new Details.fromJson(v));
    });
  }
  suggestionQuantity = json['suggestionQuantity'];
  productOfferValidity = json['productOfferValidity'];
}