MastodonToken class

OAuth access token.

Annotations

Constructors

MastodonToken({required String accessToken, required String tokenType, required String scope, required int createdAt})
Creates a MastodonToken with the given fields.
const
MastodonToken.fromJson(Map<String, dynamic> json)
Creates a MastodonToken from a JSON map.
factory

Properties

accessToken String
OAuth token string used for authorization.
final
createdAt int
Timestamp when the token was generated (UNIX timestamp).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
Scopes granted to this token (space-delimited).
final
tokenType String
Type of the OAuth token (Bearer in Mastodon).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes to JSON.
toString() String
A string representation of this object.
inherited

Operators

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