ClaimView class

Constructors

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

Properties

code ↔ String?
Code is the referral code the referral was recorded against.
getter/setter pair
created ↔ bool?
Created is true when this call recorded the referral and false when it found one already recorded for this referee — the idempotent replay.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the referral was first recorded, as a Unix timestamp.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the referral's handle.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the referral's lifecycle state: "signup" until the referee makes metered spend, then "qualified", then "credited".
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) → ClaimView?
Returns a new ClaimView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ClaimView>
mapFromJson(dynamic json) → Map<String, ClaimView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ClaimView>>

Constants

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