Token constructor
Token({
- String? id,
- String? userId,
- bool? blocked,
- String? deviceInfo,
- Timestamp? blockedAt,
- Timestamp? createdAt,
- Timestamp? usedAt,
- Timestamp? expiresAt,
- String? accessToken,
- String? refreshToken,
- String? loggedInFrom,
- TokenType? tokenType,
- LoginType? loginType,
- PlatformType? platformType,
- OidcProviderType? oidcProviderType,
Implementation
factory Token({
$core.String? id,
$core.String? userId,
$core.bool? blocked,
$core.String? deviceInfo,
$1.Timestamp? blockedAt,
$1.Timestamp? createdAt,
$1.Timestamp? usedAt,
$1.Timestamp? expiresAt,
$core.String? accessToken,
$core.String? refreshToken,
$core.String? loggedInFrom,
TokenType? tokenType,
LoginType? loginType,
$2.PlatformType? platformType,
OidcProviderType? oidcProviderType,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (userId != null) {
_result.userId = userId;
}
if (blocked != null) {
_result.blocked = blocked;
}
if (deviceInfo != null) {
_result.deviceInfo = deviceInfo;
}
if (blockedAt != null) {
_result.blockedAt = blockedAt;
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (usedAt != null) {
_result.usedAt = usedAt;
}
if (expiresAt != null) {
_result.expiresAt = expiresAt;
}
if (accessToken != null) {
_result.accessToken = accessToken;
}
if (refreshToken != null) {
_result.refreshToken = refreshToken;
}
if (loggedInFrom != null) {
_result.loggedInFrom = loggedInFrom;
}
if (tokenType != null) {
_result.tokenType = tokenType;
}
if (loginType != null) {
_result.loginType = loginType;
}
if (platformType != null) {
_result.platformType = platformType;
}
if (oidcProviderType != null) {
_result.oidcProviderType = oidcProviderType;
}
return _result;
}