Mechanism class

Implementers

Constructors

Mechanism(String? id, String? mechanismUID, String? issuer, String? accountName, String? type, String? _secret, int? timeAdded, [Account? account])
The Mechanism model represents the two-factor way used for authentication. Encapsulates the related settings, as well as an owning Account.
Mechanism.fromJson(Map<String, dynamic> json, [Account? account])
Deserializes the specified Json into an object of the Mechanism object.
factory

Properties

account Account?
getter/setter pair
accountName String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
issuer String?
getter/setter pair
mechanismUID String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeAdded int?
getter/setter pair
type String?
getter/setter pair

Methods

getAccount() Account?
Gets the Account object associated with the mechanism.
getAccountId() String
Gets the account identification associated with the mechanism.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAccount(Account account) → void
Sets the Account object associated with the mechanism.
toJson() Map<String, dynamic>
Creates a JSON string representation of Mechanism object.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

OATH → const String
PUSH → const String