VerificationCode constructor

VerificationCode({
  1. Hash? code,
  2. Timestamp? sentAt,
  3. Timestamp? expiresAt,
  4. int? attempts,
  5. Timestamp? lastAttempt,
  6. VerificationType? type,
  7. String? userId,
})

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;
}