Attribution class

Constructors

Attribution({String? code, bool? created, int? createdAt, String? id})
Returns a new Attribution instance.

Properties

code ↔ String?
Code is the affiliate code the edge was recorded under, normalized to lower case. On a re-post it is the code of the STANDING edge, which may differ from the one just sent — first touch wins.
getter/setter pair
created ↔ bool?
Created says whether THIS call made the edge. false means the caller org was already attributed and nothing moved. The HTTP status says the same: 201 when true, 200 when false.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the edge was FIRST recorded, Unix seconds UTC. On a re-post it is the original time, not now.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the attribution edge's server-minted handle, "afr_"-prefixed.
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) → Attribution?
Returns a new Attribution instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Attribution>
mapFromJson(dynamic json) → Map<String, Attribution>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Attribution>>

Constants

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