PurchaseProductDetailsModel extension type
Extension type that represents the details of a purchasable product.
Constructors
- PurchaseProductDetailsModel({required PurchaseDurationModel freeTrialDuration, PurchaseProductId productId = PurchaseProductId.empty, PurchasePriceId priceId = PurchasePriceId.empty, PurchaseProductType productType = PurchaseProductType.consumable, String name = '', String formattedPrice = '', double price = 0, String currency = '', String description = '', Duration duration = Duration.zero})
-
factory
- PurchaseProductDetailsModel.fromJson(dynamic json)
-
factory
Properties
- currency → String
-
no setter
- description → String
-
no setter
- duration → Duration
-
no setter
- formattedPrice → String
-
no setter
- freeTrialDuration → PurchaseDurationModel
-
no setter
- hasFreeTrial → bool
-
no setter
- isOneTimePurchase → bool
-
no setter
- isSubscription → bool
-
no setter
- name → String
-
no setter
- price → double
-
no setter
- priceId → PurchasePriceId
-
no setter
- productId → PurchaseProductId
-
no setter
- productType → PurchaseProductType
-
no setter
-
value
→ Map<
String, dynamic> -
final
Static Properties
- empty → PurchaseProductDetailsModel
-
final