MyReferrals class
Constructors
-
MyReferrals({String? code, StatusCounts? counts, String? link, List<
MyReferralView> referrals = const []}) - Returns a new MyReferrals instance.
Properties
- code ↔ String?
-
Code is the org's STABLE referral code — a deterministic function of the org id, so it never changes and never has to be stored to be reproduced.
getter/setter pair
- counts ↔ StatusCounts?
-
Counts tallies this org's referrals by status.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- link ↔ String?
-
Link is the shareable signup link carrying the code, on the brand's own host.
getter/setter pair
-
referrals
↔ List<
MyReferralView> -
Referrals is one row per org that signed up with this code.
getter/setter pair
- 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> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → MyReferrals? -
Returns a new MyReferrals instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< MyReferrals> -
mapFromJson(
dynamic json) → Map< String, MyReferrals> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< MyReferrals> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.