FakeDevice class final

One device of a person (08 5).

Constructors

FakeDevice({required String id, required String userId, required String name, required String platform, required String state, required String jkt, required String createdAt, String? appVersion})
Creates a device.

Properties

approvedAt ↔ String?
When it was approved.
getter/setter pair
appVersion → String?
The app version.
final
createdAt → String
When it was registered.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The device ID the client created.
final
jkt → String
The thumbprint of the DPoP key (cnf.jkt).
final
lastSeenAt ↔ String?
The time of the last authenticated request of the device.
getter/setter pair
name → String
The display name.
final
platform → String
The DevicePlatform.
final
revokedAt ↔ String?
When it was revoked.
getter/setter pair
revokeReason ↔ String?
Why it was revoked.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ String
pending, active or revoked.
getter/setter pair
stepUpJwk ↔ JsonMap?
The public JWK of the step_up key (08 6.1), or null for a device without one.
getter/setter pair
userId → String
The owner.
final
verificationCode → String
The verification code of a waiting device (08 5.2), derived from ID and key.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool self = false}) → JsonMap
The API Device; self adds the verification code of a waiting device.
toString() → String
A string representation of this object.
inherited

Operators

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