toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'_id'] = this.id;
if (this.tenantId != null) {
json[r'tenantId'] = this.tenantId;
} else {
json[r'tenantId'] = null;
}
json[r'username'] = this.username;
if (this.displayName != null) {
json[r'displayName'] = this.displayName;
} else {
json[r'displayName'] = null;
}
if (this.websiteUrl != null) {
json[r'websiteUrl'] = this.websiteUrl;
} else {
json[r'websiteUrl'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
if (this.pendingEmail != null) {
json[r'pendingEmail'] = this.pendingEmail;
} else {
json[r'pendingEmail'] = null;
}
if (this.backupEmail != null) {
json[r'backupEmail'] = this.backupEmail;
} else {
json[r'backupEmail'] = null;
}
if (this.pendingBackupEmail != null) {
json[r'pendingBackupEmail'] = this.pendingBackupEmail;
} else {
json[r'pendingBackupEmail'] = null;
}
json[r'signUpDate'] = this.signUpDate;
if (this.createdFromUrlId != null) {
json[r'createdFromUrlId'] = this.createdFromUrlId;
} else {
json[r'createdFromUrlId'] = null;
}
if (this.createdFromTenantId != null) {
json[r'createdFromTenantId'] = this.createdFromTenantId;
} else {
json[r'createdFromTenantId'] = null;
}
json[r'createdFromIpHashed'] = this.createdFromIpHashed;
json[r'verified'] = this.verified;
json[r'loginId'] = this.loginId;
json[r'loginIdDate'] = this.loginIdDate;
if (this.loginCount != null) {
json[r'loginCount'] = this.loginCount;
} else {
json[r'loginCount'] = null;
}
if (this.optedInNotifications != null) {
json[r'optedInNotifications'] = this.optedInNotifications;
} else {
json[r'optedInNotifications'] = null;
}
if (this.optedInTenantNotifications != null) {
json[r'optedInTenantNotifications'] = this.optedInTenantNotifications;
} else {
json[r'optedInTenantNotifications'] = null;
}
if (this.hideAccountCode != null) {
json[r'hideAccountCode'] = this.hideAccountCode;
} else {
json[r'hideAccountCode'] = null;
}
if (this.avatarSrc != null) {
json[r'avatarSrc'] = this.avatarSrc;
} else {
json[r'avatarSrc'] = null;
}
if (this.isFastCommentsHelpRequestAdmin != null) {
json[r'isFastCommentsHelpRequestAdmin'] = this.isFastCommentsHelpRequestAdmin;
} else {
json[r'isFastCommentsHelpRequestAdmin'] = null;
}
if (this.isHelpRequestAdmin != null) {
json[r'isHelpRequestAdmin'] = this.isHelpRequestAdmin;
} else {
json[r'isHelpRequestAdmin'] = null;
}
if (this.isAccountOwner != null) {
json[r'isAccountOwner'] = this.isAccountOwner;
} else {
json[r'isAccountOwner'] = null;
}
if (this.isAdminAdmin != null) {
json[r'isAdminAdmin'] = this.isAdminAdmin;
} else {
json[r'isAdminAdmin'] = null;
}
if (this.isBillingAdmin != null) {
json[r'isBillingAdmin'] = this.isBillingAdmin;
} else {
json[r'isBillingAdmin'] = null;
}
if (this.isAnalyticsAdmin != null) {
json[r'isAnalyticsAdmin'] = this.isAnalyticsAdmin;
} else {
json[r'isAnalyticsAdmin'] = null;
}
if (this.isCustomizationAdmin != null) {
json[r'isCustomizationAdmin'] = this.isCustomizationAdmin;
} else {
json[r'isCustomizationAdmin'] = null;
}
if (this.isManageDataAdmin != null) {
json[r'isManageDataAdmin'] = this.isManageDataAdmin;
} else {
json[r'isManageDataAdmin'] = null;
}
if (this.isCommentModeratorAdmin != null) {
json[r'isCommentModeratorAdmin'] = this.isCommentModeratorAdmin;
} else {
json[r'isCommentModeratorAdmin'] = null;
}
if (this.isAPIAdmin != null) {
json[r'isAPIAdmin'] = this.isAPIAdmin;
} else {
json[r'isAPIAdmin'] = null;
}
if (this.isSiteAdmin != null) {
json[r'isSiteAdmin'] = this.isSiteAdmin;
} else {
json[r'isSiteAdmin'] = null;
}
json[r'moderatorIds'] = this.moderatorIds;
if (this.isImpersonator != null) {
json[r'isImpersonator'] = this.isImpersonator;
} else {
json[r'isImpersonator'] = null;
}
if (this.isCouponManager != null) {
json[r'isCouponManager'] = this.isCouponManager;
} else {
json[r'isCouponManager'] = null;
}
if (this.locale != null) {
json[r'locale'] = this.locale;
} else {
json[r'locale'] = null;
}
if (this.digestEmailFrequency != null) {
json[r'digestEmailFrequency'] = this.digestEmailFrequency;
} else {
json[r'digestEmailFrequency'] = null;
}
if (this.notificationFrequency != null) {
json[r'notificationFrequency'] = this.notificationFrequency;
} else {
json[r'notificationFrequency'] = null;
}
if (this.adminNotificationFrequency != null) {
json[r'adminNotificationFrequency'] = this.adminNotificationFrequency;
} else {
json[r'adminNotificationFrequency'] = null;
}
if (this.agentApprovalNotificationFrequency != null) {
json[r'agentApprovalNotificationFrequency'] = this.agentApprovalNotificationFrequency;
} else {
json[r'agentApprovalNotificationFrequency'] = null;
}
if (this.lastTenantNotificationSentDate != null) {
json[r'lastTenantNotificationSentDate'] = this.lastTenantNotificationSentDate!.toUtc().toIso8601String();
} else {
json[r'lastTenantNotificationSentDate'] = null;
}
if (this.lastReplyNotificationSentDate != null) {
json[r'lastReplyNotificationSentDate'] = this.lastReplyNotificationSentDate!.toUtc().toIso8601String();
} else {
json[r'lastReplyNotificationSentDate'] = null;
}
if (this.ignoredAddToMySiteMessages != null) {
json[r'ignoredAddToMySiteMessages'] = this.ignoredAddToMySiteMessages;
} else {
json[r'ignoredAddToMySiteMessages'] = null;
}
if (this.lastLoginDate != null) {
json[r'lastLoginDate'] = this.lastLoginDate!.toUtc().toIso8601String();
} else {
json[r'lastLoginDate'] = null;
}
if (this.displayLabel != null) {
json[r'displayLabel'] = this.displayLabel;
} else {
json[r'displayLabel'] = null;
}
if (this.isProfileActivityPrivate != null) {
json[r'isProfileActivityPrivate'] = this.isProfileActivityPrivate;
} else {
json[r'isProfileActivityPrivate'] = null;
}
if (this.isProfileCommentsPrivate != null) {
json[r'isProfileCommentsPrivate'] = this.isProfileCommentsPrivate;
} else {
json[r'isProfileCommentsPrivate'] = null;
}
if (this.isProfileDMDisabled != null) {
json[r'isProfileDMDisabled'] = this.isProfileDMDisabled;
} else {
json[r'isProfileDMDisabled'] = null;
}
if (this.profileCommentApprovalMode != null) {
json[r'profileCommentApprovalMode'] = this.profileCommentApprovalMode;
} else {
json[r'profileCommentApprovalMode'] = null;
}
if (this.karma != null) {
json[r'karma'] = this.karma;
} else {
json[r'karma'] = null;
}
if (this.passwordHash != null) {
json[r'passwordHash'] = this.passwordHash;
} else {
json[r'passwordHash'] = null;
}
if (this.averageTicketAckTimeMS != null) {
json[r'averageTicketAckTimeMS'] = this.averageTicketAckTimeMS;
} else {
json[r'averageTicketAckTimeMS'] = null;
}
if (this.hasBlockedUsers != null) {
json[r'hasBlockedUsers'] = this.hasBlockedUsers;
} else {
json[r'hasBlockedUsers'] = null;
}
if (this.bio != null) {
json[r'bio'] = this.bio;
} else {
json[r'bio'] = null;
}
if (this.headerBackgroundSrc != null) {
json[r'headerBackgroundSrc'] = this.headerBackgroundSrc;
} else {
json[r'headerBackgroundSrc'] = null;
}
if (this.countryCode != null) {
json[r'countryCode'] = this.countryCode;
} else {
json[r'countryCode'] = null;
}
if (this.countryFlag != null) {
json[r'countryFlag'] = this.countryFlag;
} else {
json[r'countryFlag'] = null;
}
json[r'socialLinks'] = this.socialLinks;
if (this.hasTwoFactor != null) {
json[r'hasTwoFactor'] = this.hasTwoFactor;
} else {
json[r'hasTwoFactor'] = null;
}
if (this.isEmailSuppressed != null) {
json[r'isEmailSuppressed'] = this.isEmailSuppressed;
} else {
json[r'isEmailSuppressed'] = null;
}
return json;
}