CsrfResp class

Constructors

CsrfResp({String? csrfToken, int? expiresIn})
Returns a new CsrfResp instance.

Properties

csrfToken ↔ String?
Token is the value to send back in the X-CSRF-Token header. It is bound to the caller's identity, so it authorizes changes as them and as nobody else.
getter/setter pair
expiresIn ↔ int?
ExpiresIn is the token's lifetime in seconds. Fetch a new one when it lapses; a change with an expired token is refused.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
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) → CsrfResp?
Returns a new CsrfResp instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CsrfResp>
mapFromJson(dynamic json) → Map<String, CsrfResp>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CsrfResp>>

Constants

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