ProductDetailsWrapper class
Dart wrapper around com.android.billingclient.api.ProductDetails
.
Contains the details of an available product in Google Play Billing. Represents the details of a one-time or subscription product.
- Annotations
-
- @JsonSerializable()
- @ProductTypeConverter()
- @immutable
Constructors
-
ProductDetailsWrapper({required String description, required String name, OneTimePurchaseOfferDetailsWrapper? oneTimePurchaseOfferDetails, required String productId, required ProductType productType, List<
SubscriptionOfferDetailsWrapper> ? subscriptionOfferDetails, required String title}) -
Creates a ProductDetailsWrapper with the given purchase details.
const
-
ProductDetailsWrapper.fromJson(Map<
String, dynamic> map) -
Factory for creating a ProductDetailsWrapper from a Map with the
product details.
factory
Properties
- description → String
-
Textual description of the product.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
The name of the product being sold.
final
- oneTimePurchaseOfferDetails → OneTimePurchaseOfferDetailsWrapper?
-
The offer details of a one-time purchase product.
final
- productId → String
-
The product's id.
final
- productType → ProductType
-
The ProductType of the product.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriptionOfferDetails
→ List<
SubscriptionOfferDetailsWrapper> ? -
A list containing all available offers to purchase a subscription product.
final
- title → String
-
The title of the product being sold.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override