CodeView class

Constructors

CodeView({int? clicks, String? code, int? conversions, int? createdAt, String? label, int? signups, String? url})
Returns a new CodeView instance.

Properties

clicks ↔ int?
Clicks is how many pings this code has taken. The one STORED counter here and pure vanity: no accrual or payout reads it, pings are coalesced in memory and flushed in batches, and a dropped tally is accepted rather than contending with the money write path. Do not reconcile it against anything.
getter/setter pair
code ↔ String?
Code is the link's slug — 3–32 chars of a–z, 0–9 and hyphen — unique across the WHOLE directory, so any affiliate's code resolves an attribution.
getter/setter pair
conversions ↔ int?
Conversions is how many of those signups have actually produced positive commission for the caller. Also derived, from the accrual rows, so it is ≤ signups and lags a referral until the first sweep after it spends.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the link was minted, Unix seconds UTC.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
label ↔ String?
Label is the caller's own note for the link ("twitter", "newsletter"). Cosmetic: trimmed, stripped of control characters, capped at 48 bytes, and never part of the code. "primary" on the link mirrored at approval.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signups ↔ int?
Signups is how many orgs were attributed with this code — DERIVED by counting attribution edges, never stored, so it cannot drift from the ledger.
getter/setter pair
url ↔ String?
URL is the full shareable link, the brand host plus ?aff=. The host is the deployment's own brand, so a Lux or Zoo install never mints a hanzo.ai link.
getter/setter pair

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) → CodeView?
Returns a new CodeView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CodeView>
mapFromJson(dynamic json) → Map<String, CodeView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CodeView>>

Constants

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