toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    "productId": productId,
    "productGroupId": productGroupId,
    "title": title,
    "desc": desc,
    "price": price,
    "salesPrice": salesPrice,
    "currency": currency,
    "imageUrls": imageUrls,
    "url": url,
    "variants": variants?.map((e) => e.toJson()).toList(),
    "ctaText": ctaText,
  };
}