Account class Null safety

The object representing a user account.

An Account is created when a FIDO UAF registration is completed successfully.

Constructors

Account({required String username, required Server server})
Default constructor for Account.
factory
Account.fromJson(Map<String, dynamic> json)
Alternate constructor that creates an Account from a json.
factory

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
server Server
The object describing the server where the account is defined.
read-only
username → String
The username associated with the Account. This is a unique identifier. Depending on the backend, the username can be a UUID, an email or a login ID. username is used because it matches the nomenclature used in the FIDO UAF specification to refer to a user unique identifier.
read-only

Methods

fromJson(Map<String, dynamic> json) → dynamic
Returns a value of the type you specify, deserialized from a JSON object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a JSON-encoded representation of the value you supply.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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