toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "productId": productId,
      "type": type,
      "title": title,
      "name": name,
      "description": description,
      "localizedIn": List<dynamic>.from(localizedIn.map((x) => x)),
      "skuDetailsToken": skuDetailsToken,
      "subscriptionOfferDetails": List<dynamic>.from(
          subscriptionOfferDetails.map((x) => x?.toJson())),
      "oneTimePurchaseOfferDetails": oneTimePurchaseOfferDetails?.toJson()
    };