LoginSession constructor

LoginSession({
  1. LoginStatus? loginStatus,
  2. Timestamp? sentAt,
  3. Timestamp? expiresAt,
  4. String? userId,
})

Implementation

factory LoginSession({
  LoginStatus? loginStatus,
  $1.Timestamp? sentAt,
  $1.Timestamp? expiresAt,
  $core.String? userId,
}) {
  final _result = create();
  if (loginStatus != null) {
    _result.loginStatus = loginStatus;
  }
  if (sentAt != null) {
    _result.sentAt = sentAt;
  }
  if (expiresAt != null) {
    _result.expiresAt = expiresAt;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  return _result;
}