User constructor
User({
- required String id,
- String? tenantId,
- required String username,
- String? displayName,
- String? websiteUrl,
- required String? email,
- String? pendingEmail,
- String? backupEmail,
- String? pendingBackupEmail,
- required int signUpDate,
- String? createdFromUrlId,
- required String? createdFromTenantId,
- required String createdFromIpHashed,
- required bool verified,
- required String loginId,
- required int loginIdDate,
- int? loginCount,
- bool? optedInNotifications,
- bool? optedInTenantNotifications,
- bool? hideAccountCode,
- String? avatarSrc,
- bool? isFastCommentsHelpRequestAdmin,
- bool? isHelpRequestAdmin,
- bool? isAccountOwner,
- bool? isAdminAdmin,
- bool? isBillingAdmin,
- bool? isAnalyticsAdmin,
- bool? isCustomizationAdmin,
- bool? isManageDataAdmin,
- bool? isCommentModeratorAdmin,
- bool? isAPIAdmin,
- bool? isSiteAdmin,
- List<
String> moderatorIds = const [], - bool? isImpersonator,
- bool? isCouponManager,
- String? locale,
- DigestEmailFrequency? digestEmailFrequency,
- double? notificationFrequency,
- double? adminNotificationFrequency,
- ImportedAgentApprovalNotificationFrequency? agentApprovalNotificationFrequency,
- DateTime? lastTenantNotificationSentDate,
- DateTime? lastReplyNotificationSentDate,
- bool? ignoredAddToMySiteMessages,
- DateTime? lastLoginDate,
- String? displayLabel,
- bool? isProfileActivityPrivate,
- bool? isProfileCommentsPrivate,
- bool? isProfileDMDisabled,
- double? profileCommentApprovalMode,
- double? karma,
- String? passwordHash,
- double? averageTicketAckTimeMS,
- bool? hasBlockedUsers,
- String? bio,
- String? headerBackgroundSrc,
- String? countryCode,
- String? countryFlag,
- List<
String> socialLinks = const [], - bool? hasTwoFactor,
- bool? isEmailSuppressed,
Returns a new User instance.
Implementation
User({
required this.id,
this.tenantId,
required this.username,
this.displayName,
this.websiteUrl,
required this.email,
this.pendingEmail,
this.backupEmail,
this.pendingBackupEmail,
required this.signUpDate,
this.createdFromUrlId,
required this.createdFromTenantId,
required this.createdFromIpHashed,
required this.verified,
required this.loginId,
required this.loginIdDate,
this.loginCount,
this.optedInNotifications,
this.optedInTenantNotifications,
this.hideAccountCode,
this.avatarSrc,
this.isFastCommentsHelpRequestAdmin,
this.isHelpRequestAdmin,
this.isAccountOwner,
this.isAdminAdmin,
this.isBillingAdmin,
this.isAnalyticsAdmin,
this.isCustomizationAdmin,
this.isManageDataAdmin,
this.isCommentModeratorAdmin,
this.isAPIAdmin,
this.isSiteAdmin,
this.moderatorIds = const [],
this.isImpersonator,
this.isCouponManager,
this.locale,
this.digestEmailFrequency,
this.notificationFrequency,
this.adminNotificationFrequency,
this.agentApprovalNotificationFrequency,
this.lastTenantNotificationSentDate,
this.lastReplyNotificationSentDate,
this.ignoredAddToMySiteMessages,
this.lastLoginDate,
this.displayLabel,
this.isProfileActivityPrivate,
this.isProfileCommentsPrivate,
this.isProfileDMDisabled,
this.profileCommentApprovalMode,
this.karma,
this.passwordHash,
this.averageTicketAckTimeMS,
this.hasBlockedUsers,
this.bio,
this.headerBackgroundSrc,
this.countryCode,
this.countryFlag,
this.socialLinks = const [],
this.hasTwoFactor,
this.isEmailSuppressed,
});