originalJson

val originalJson: JSONObject

JSONObject representing the original product class from Google or Amazon.

Note: there's a convenience extension property that can be used to get the original SkuDetails class: StoreProduct.skuDetails. Alternatively, the original SkuDetails can be built doing the following: SkuDetails(this.originalJson.toString())

For Amazon, the original Product can be obtained using StoreProduct.amazonProduct

Sources

Link copied to clipboard