UserChoiceDetailsProductWrapper class
Data structure representing a UserChoiceDetails product.
This wraps com.android.billingclient.api.UserChoiceDetails.Product
- Annotations
-
- @JsonSerializable(createToJson: true, explicitToJson: true)
- @ProductTypeConverter()
- @immutable
Constructors
- UserChoiceDetailsProductWrapper({required String id, required String offerToken, required ProductType productType})
-
Creates a UserChoiceDetailsProductWrapper with the given record details.
const
-
UserChoiceDetailsProductWrapper.fromJson(Map<
String, dynamic> map) -
Factory for creating a UserChoiceDetailsProductWrapper from a Map with the record details.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Returns the id of the product being purchased.
final
- offerToken → String
-
Returns the offer token that was passed in launchBillingFlow to purchase the product.
final
- productType → ProductType
-
Returns the ProductType of the product being purchased.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a JSON representation of this product.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override