ChallengeView class

Constructors

ChallengeView({int? expiresAt, String? message, String? nonce, int? tokenId, int? ttlSeconds})
Returns a new ChallengeView instance.

Properties

expiresAt ↔ int?
ExpiresAt is when the nonce stops being redeemable, as a Unix timestamp.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
message ↔ String?
Message is the EXACT text to personal_sign. It is reconstructed server-side from the validated org, the slot and the nonce at redemption, so signing anything else cannot claim the slot.
getter/setter pair
nonce ↔ String?
Nonce is the single-use, org-bound challenge value to send back with the signature.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenId ↔ int?
TokenID is the slot the challenge was issued for.
getter/setter pair
ttlSeconds ↔ int?
TTLSeconds is the challenge lifetime in seconds.
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) → ChallengeView?
Returns a new ChallengeView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ChallengeView>
mapFromJson(dynamic json) → Map<String, ChallengeView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ChallengeView>>

Constants

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