VerificationCode constructor
VerificationCode({})
Implementation
factory VerificationCode({
Hash? code,
$1.Timestamp? sentAt,
$1.Timestamp? expiresAt,
$core.int? attempts,
$1.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;
}