IntroductoryPrice class
Contains all the introductory information associated with a Product
- Annotations
-
- @freezed
Constructors
- IntroductoryPrice(@JsonKey(name: 'price') double price, @JsonKey(name: 'priceString') String priceString, @JsonKey(name: 'period') String period, @JsonKey(name: 'cycles') int cycles, @Deprecated('Use periodUnit property of type PeriodUnit instead.') @JsonKey(name: 'periodUnit') String introPricePeriodUnit, @JsonKey(name: 'periodNumberOfUnits') int periodNumberOfUnits)
-
constfactory
-
IntroductoryPrice.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $IntroductoryPriceCopyWith<
IntroductoryPrice> -
no setterinherited
- cycles → int
-
Number of subscription billing periods for which the
user will be given the introductory price, such as 3.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- introPrice → double
-
Introductory price of a subscription in the local currency.
no setter
- introPriceCycles → int
-
Number of subscription billing periods for which the
user will be given the introductory price, such as 3.
no setter
- introPricePeriod → String
-
Billing period of the introductory price, specified in
ISO 8601 format.
no setter
- introPricePeriodNumberOfUnits → int
-
Number of units for the billing period of the introductory price.
no setter
- introPricePeriodUnit → String
-
String representation of unit for the billing period of the introductory
price, can be DAY, WEEK, MONTH or YEAR.
no setterinherited
- introPriceString → String
-
Formatted introductory price of a subscription, including
its currency sign, such as €3.99.
no setter
- period → String
-
Billing period of the introductory price, specified in
ISO 8601 format.
no setterinherited
- periodNumberOfUnits → int
-
Number of units for the billing period of the introductory price.
no setterinherited
- periodUnit → PeriodUnit
-
Unit for the billing period of the introductory price, can be DAY, WEEK,
MONTH or YEAR.
no setter
- price → double
-
Introductory price of a subscription in the local currency.
no setterinherited
- priceString → String
-
Formatted introductory price of a subscription, including
its currency sign, such as €3.99.
no setterinherited
- 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> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited