WinBackOffer class

Annotations
  • @freezed

Constructors

WinBackOffer(String identifier, double price, String priceString, int cycles, String period, String periodUnit, int periodNumberOfUnits)
const
factory
WinBackOffer.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $WinBackOfferCopyWith<WinBackOffer>
Create a copy of WinBackOffer with the given fields replaced by the non-null parameter values.
no setterinherited
cycles int
Number of subscription billing periods for which the user will be given the discount, such as 3.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
identifier String
Identifier of the discount.
no setterinherited
period String
Billing period of the discount, specified in ISO 8601 format.
no setterinherited
periodNumberOfUnits int
Number of units for the billing period of the discount.
no setterinherited
periodUnit String
Unit for the billing period of the discount, can be DAY, WEEK, MONTH or YEAR.
no setterinherited
price double
Identifier of the discount.
no setterinherited
priceString String
Formatted price, 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>
Serializes this WinBackOffer to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited