MastodonOAuthUserInfo class
OAuth userinfo endpoint response model.
Corresponds to the response from GET /oauth/userinfo.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonOAuthUserInfo({required String iss, required String sub, required String name, required String preferredUsername, required String profile, required String picture})
-
Creates a MastodonOAuthUserInfo with the given fields.
const
-
MastodonOAuthUserInfo.fromJson(Map<
String, dynamic> json) -
Creates a MastodonOAuthUserInfo from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- iss → String
-
URL of the instance that issued the token.
final
- name → String
-
Display name of the user.
final
- picture → String
-
URL of the user's avatar image.
final
- preferredUsername → String
-
Username of the user.
final
- profile → String
-
URL of the user's profile.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sub → String
-
URI of the user.
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