toPurchaseModel method
Converts this product to purchase model to pass to Qonversion.purchase.
offerId
concrete Android offer identifier if necessary.
If the products' base plan id is specified, but offer id is not provided for
purchase, then default offer will be used.
Ignored if base plan id is not specified.
Ignored for iOS.
To know how we choose the default offer, see QProductStoreDetails.defaultSubscriptionOfferDetails.
Returns purchase model to pass to the purchase method.
Implementation
QPurchaseModel toPurchaseModel({String? offerId}) {
return new QPurchaseModel(this.qonversionId, offerId: offerId);
}