Account class

Account model represents an identity for the user with an issuer. It is possible for a user to have multiple accounts provided by a single issuer, however it is not possible to have multiple accounts from with same issuer for the same account name.

Constructors

Account(String? id, String? issuer, String? displayIssuer, String? accountName, String? displayAccountName, String? imageURL, String? backgroundColor, int? timeAdded, [List<Mechanism>? mechanismList])
Creates Account object with given information.
Account.fromJson(Map<String, dynamic> json)
Deserializes the specified Json into an object of the Account object. This account object may include a list of Mechanism
factory

Properties

accountName String?
getter/setter pair
backgroundColor String?
getter/setter pair
displayAccountName String?
getter/setter pair
displayIssuer String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
imageURL String?
getter/setter pair
issuer String?
getter/setter pair
mechanismList List<Mechanism>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeAdded int?
getter/setter pair

Methods

getAccountName() String?
Gets the name of the account.
getIssuer() String?
Gets the name of the IDP that issued this account.
getOathMechanism() OathMechanism?
Gets the OathMechanism associated with this account.
getPushMechanism() PushMechanism?
Gets the PushMechanism associated with this account.
hasMultipleMechanisms() bool
Returns true if this account has more the one Mechanism.
hasOathMechanism() bool
Returns true if a OathMechanism is associated with this account.
hasPushMechanism() bool
Returns true if a PushMechanism is associated with this account.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates a JSON string representation of Account object.
toString() String
Creates a String representation of Account object.
override

Operators

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