LevelView class

Constructors

LevelView({int? downlineCount, int? level, int? rateBps})
Returns a new LevelView instance.

Properties

downlineCount ↔ int?
DownlineCount is how many orgs sit exactly this many hops below the caller. It is 0 in the schedule quoted to a caller that has not applied, which has no downline to count.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
level ↔ int?
Level is the upline distance from the org whose spend is being shared: 1 is the direct referrer, 2 and 3 the referrers above it. Nothing accrues past 3.
getter/setter pair
rateBps ↔ int?
RateBps is the commission paid at this level, in basis points OF Hanzo's margin (2000 = 20% of margin, never of the customer's bill). Level 1 is the affiliate's own negotiated rate; 2 and 3 are platform switches read live, so this is the schedule actually in force, not one compiled in.
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) → LevelView?
Returns a new LevelView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<LevelView>
mapFromJson(dynamic json) → Map<String, LevelView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<LevelView>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.