toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'username'] = this.username;
json[r'email'] = this.email;
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.signUpDate != null) {
json[r'signUpDate'] = this.signUpDate;
} else {
json[r'signUpDate'] = null;
}
if (this.locale != null) {
json[r'locale'] = this.locale;
} else {
json[r'locale'] = null;
}
if (this.verified != null) {
json[r'verified'] = this.verified;
} else {
json[r'verified'] = null;
}
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.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;
}
json[r'moderatorIds'] = this.moderatorIds;
if (this.digestEmailFrequency != null) {
json[r'digestEmailFrequency'] = this.digestEmailFrequency;
} else {
json[r'digestEmailFrequency'] = null;
}
if (this.displayLabel != null) {
json[r'displayLabel'] = this.displayLabel;
} else {
json[r'displayLabel'] = null;
}
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;
}
if (this.lastLoginDate != null) {
json[r'lastLoginDate'] = this.lastLoginDate;
} else {
json[r'lastLoginDate'] = null;
}
if (this.karma != null) {
json[r'karma'] = this.karma;
} else {
json[r'karma'] = null;
}
return json;
}