LoginResponse class

Annotations
  • @_NameSource('generated')

Constructors

LoginResponse({required String accessToken, required String deviceId, int? expiresInMs, String? homeServer, String? refreshToken, required String userId, DiscoveryInformation? wellKnown})
LoginResponse.fromJson(Map<String, Object?> json)

Properties

accessToken String
An access token for the account. This access token can then be used to authorize other requests.
getter/setter pair
deviceId String
ID of the logged-in device. Will be the same as the corresponding parameter in the request, if one was specified.
getter/setter pair
expiresInMs int?
The lifetime of the access token, in milliseconds. Once the access token has expired a new access token can be obtained by using the provided refresh token. If no refresh token is provided, the client will need to re-log in to obtain a new access token. If not given, the client can assume that the access token will not expire.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
homeServer String?
The server_name of the homeserver on which the account has been registered.
getter/setter pair
refreshToken String?
A refresh token for the account. This token can be used to obtain a new access token when it expires by calling the /refresh endpoint.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
The fully-qualified Matrix ID for the account.
getter/setter pair
wellKnown DiscoveryInformation?
Optional client configuration provided by the server. If present, clients SHOULD use the provided object to reconfigure themselves, optionally validating the URLs within. This object takes the same form as the one returned from .well-known autodiscovery.
getter/setter pair

Methods

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

Operators

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