toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['pogId'] = this.pogId;
data['offerId'] = this.offerId;
data['pogName'] = this.pogName;
data['offerName'] = this.offerName;
data['offerDescription'] = this.offerDescription;
data['isPriceOverride'] = this.isPriceOverride;
if (this.price != null) {
data['price'] = this.price!.toJson();
}
data['imageUrl'] = this.imageUrl;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
data['suggestionQuantity'] = this.suggestionQuantity;
data['productOfferValidity'] = this.productOfferValidity;
return data;
}