VerificationCode constructor
VerificationCode({})
Implementation
factory VerificationCode({
Hash? code,
$2.Timestamp? sentAt,
$2.Timestamp? expiresAt,
$core.int? attempts,
$2.Timestamp? lastAttempt,
VerificationType? type,
$core.String? userId,
}) {
final _result = create();
if (code != null) {
_result.code = code;
}
if (sentAt != null) {
_result.sentAt = sentAt;
}
if (expiresAt != null) {
_result.expiresAt = expiresAt;
}
if (attempts != null) {
_result.attempts = attempts;
}
if (lastAttempt != null) {
_result.lastAttempt = lastAttempt;
}
if (type != null) {
_result.type = type;
}
if (userId != null) {
_result.userId = userId;
}
return _result;
}