DevOtp class final

Код подтверждения, выданный служебным эндпоинтом стенда.

Annotations

Constructors

DevOtp({required String recipient, required String code, DateTime? createdAt, DateTime? expiresAt, bool expired = false})
const
DevOtp.fromJson(Map<String, Object?> json)
factory

Properties

code → String
final
createdAt → DateTime?
final
expired → bool
final
expiresAt → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
isUsable → bool
Похож ли код на тот, что примет /auth/verify: шесть цифр. Стенд иногда отдаёт вместо кода его хеш ($2a$…).
no setter
recipient → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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