QProductOfferDetails class

This class contains all the information about the Google subscription offer details. It might be either a plain base plan details or a base plan with the concrete offer details.

Annotations
  • @JsonSerializable()

Constructors

QProductOfferDetails(String basePlanId, String? offerId, String offerToken, List<String> tags, List<QProductPricingPhase> pricingPhases, QProductPricingPhase? basePlan, QProductPricingPhase? introPhase, QProductPricingPhase? trialPhase, bool hasTrial, bool hasIntro, bool hasTrialOrIntro)
const
QProductOfferDetails.fromJson(Map<String, dynamic> json)
factory

Properties

basePlan QProductPricingPhase?
A base plan phase details.
final
basePlanId String
The identifier of the current base plan.
final
hashCode int
The hash code for this object.
no setterinherited
hasIntro bool
True, if there is any intro phase in the current offer. False otherwise. The intro phase is one of single or recurrent discounted payments.
final
hasTrial bool
True, if there is a trial phase in the current offer. False otherwise.
final
hasTrialOrIntro bool
True, if there is any trial or intro phase in the current offer. False otherwise. The intro phase is one of single or recurrent discounted payments.
final
introPhase QProductPricingPhase?
A trial phase details, if exists.
final
offerId String?
The identifier of the concrete offer, to which these details belong. Null, if these are plain base plan details.
final
offerToken String
A token to purchase the current offer.
final
pricingPhases List<QProductPricingPhase>
A time-ordered list of pricing phases for the current offer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>
List of tags set for the current offer.
final
trialPhase QProductPricingPhase?
The intro phase details, if exists. Intro phase is one of single or recurrent discounted payments.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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