MastodonApplication class
OAuth application information model.
Corresponds to the response from GET /api/v1/apps/verify_credentials.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
MastodonApplication({required String id, required String name, String? website, required List<
String> scopes, required List<String> redirectUris, @Deprecated('Use redirectUris instead') String? redirectUri, @Deprecated('VAPID key used by the Push Streaming API') String? vapidKey}) -
Creates a MastodonApplication with the given fields.
const
-
MastodonApplication.fromJson(Map<
String, dynamic> json) -
Creates a MastodonApplication from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Database ID of the application.
final
- name → String
-
Name of the application.
final
- redirectUri → String?
-
Redirect URI (deprecated, for backward compatibility).
final
-
redirectUris
→ List<
String> -
List of registered redirect URIs.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> -
Scopes granted to the application.
final
- vapidKey → String?
-
VAPID key for the Web Push API (deprecated).
final
- website → String?
-
Website URL of the application.
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