SnapdLoginResponse class

Response received when logging in.

Annotations
  • @immutable
  • @JsonSerializable()

Constructors

SnapdLoginResponse({required int id, String? username, String? email, String? macaroon, List<String> discharges = const [], List<String> sshKeys = const []})
const
SnapdLoginResponse.fromJson(Map<String, dynamic> json)
factory

Properties

discharges List<String>
Discharges provided bu the server.
final
email String?
Email address logged in with.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Id for this account, which can be used in SnapdClient.logout.
final
macaroon String?
Macaroon provided by the server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sshKeys List<String>
Secure Shell keys this user has.
final
username String?
Username logged in with.
final

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.
override

Operators

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