ReferralRewardCode class
A reward code granted to the referrer: an App Store one-time offer code, or a Google Play promo code if they were rewarded on an Android phone.
Constructors
- ReferralRewardCode({required String code, required String redeemUrl, String store = appStore, DateTime? grantedAt})
-
const
-
ReferralRewardCode.fromJson(Map<
String, dynamic> json) -
factory
Properties
- code → String
-
final
- grantedAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAppStore → bool
-
no setter
- isGooglePlay → bool
-
no setter
- redeemUrl → String
-
Opens the store's redemption page for code.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → String
-
Which store redeems code: appStore or googlePlay. Older servers
don't send it; those codes are App Store codes. Other values are kept.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- appStore → const String
- googlePlay → const String