PeriodEarningView class

Constructors

PeriodEarningView({int? commissionCents, int? marginCents, String? period})
Returns a new PeriodEarningView instance.

Properties

commissionCents ↔ int?
CommissionCents is what the caller earned that period, in cents: the sum over each referred org and upline level of margin × that level's rate. Always ≤ marginCents, by construction.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
marginCents ↔ int?
MarginCents is the margin Hanzo earned in that period on the spend of every org the caller referred, in cents — the base commission is a rate OF. It is the aggregate base, never any one customer's bill.
getter/setter pair
period ↔ String?
Period is the accrual bucket: the UTC year-month, "YYYY-MM". Commission is latched at most once per referred org per period, so one row is one month.
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) → PeriodEarningView?
Returns a new PeriodEarningView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PeriodEarningView>
mapFromJson(dynamic json) → Map<String, PeriodEarningView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PeriodEarningView>>

Constants

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