TrialFacts class
Trial billing facts for a subscription product.
When the bridge emits a trial map with an unrecognised mode,
fromMap returns null — mirroring the iOS ZSProduct behaviour.
Constructors
- TrialFacts({required ZSTrialMode mode, String? duration, int upfrontAmountCents = 0, int holdAmountCents = 0, bool validatesCard = false})
-
const
Properties
- duration → String?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- holdAmountCents → int
-
final
- mode → ZSTrialMode
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upfrontAmountCents → int
-
final
- validatesCard → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromMap(
Map< String, dynamic> map) → TrialFacts? - Returns null (the whole trial) when mode is missing/unknown — mirrors iOS.