Application class

Constructors

Application({String? code, bool? created, String? id, int? rateBps, String? requestedCode, String? status})
Returns a new Application instance.

Properties

code ↔ String?
Code is the minted referral code. Empty on a first apply — applying does not mint a code, approval does; a re-apply echoes whatever the row already holds.
getter/setter pair
created ↔ bool?
Created says whether THIS call made the row. false means the org had already applied and nothing changed — no second row, no reset of an existing approval. The HTTP status states the same fact: 201 when true, 200 when false.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the affiliate's server-minted handle, "aff_"-prefixed — the id staff approve, suspend, re-rate and pay against.
getter/setter pair
rateBps ↔ int?
RateBps is the direct (level 1) commission rate the row carries, in basis points OF Hanzo's margin (2000 = 20% of margin, never of the customer's bill).
getter/setter pair
requestedCode ↔ String?
RequestedCode echoes the vanity code asked for, normalized to lower case. It is a request only: approval mints a different slug if this one is taken.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is "applied" for a row this call created. A re-apply echoes the existing row's status, which may already be "approved" or "suspended".
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) → Application?
Returns a new Application instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Application>
mapFromJson(dynamic json) → Map<String, Application>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Application>>

Constants

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