Data class

The WP JSON API v4 Auth object.

Constructors

Data({String? token, int? expiresAt, Data? user})
Data.fromJson(Map<String, dynamic> json)

Properties

expiresAt ↔ int?
When the token expires, as a Unix timestamp in seconds.
getter/setter pair
expiresAtDateTime → DateTime?
Returns expiresAt as a DateTime, or null if it is not set.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token ↔ String?
The token to send on authenticated requests.
getter/setter pair
user ↔ Data?
The user that the token belongs to.
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.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited