toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'groupIds'] = this.groupIds;
if (this.hasBlockedUsers != null) {
json[r'hasBlockedUsers'] = this.hasBlockedUsers;
} else {
json[r'hasBlockedUsers'] = null;
}
if (this.isProfileDMDisabled != null) {
json[r'isProfileDMDisabled'] = this.isProfileDMDisabled;
} else {
json[r'isProfileDMDisabled'] = null;
}
if (this.isProfileCommentsPrivate != null) {
json[r'isProfileCommentsPrivate'] = this.isProfileCommentsPrivate;
} else {
json[r'isProfileCommentsPrivate'] = null;
}
if (this.isProfileActivityPrivate != null) {
json[r'isProfileActivityPrivate'] = this.isProfileActivityPrivate;
} else {
json[r'isProfileActivityPrivate'] = null;
}
if (this.isCommentModeratorAdmin != null) {
json[r'isCommentModeratorAdmin'] = this.isCommentModeratorAdmin;
} else {
json[r'isCommentModeratorAdmin'] = null;
}
if (this.isAdminAdmin != null) {
json[r'isAdminAdmin'] = this.isAdminAdmin;
} else {
json[r'isAdminAdmin'] = null;
}
if (this.isAccountOwner != null) {
json[r'isAccountOwner'] = this.isAccountOwner;
} else {
json[r'isAccountOwner'] = null;
}
if (this.displayName != null) {
json[r'displayName'] = this.displayName;
} else {
json[r'displayName'] = null;
}
if (this.displayLabel != null) {
json[r'displayLabel'] = this.displayLabel;
} else {
json[r'displayLabel'] = null;
}
if (this.optedInSubscriptionNotifications != null) {
json[r'optedInSubscriptionNotifications'] = this.optedInSubscriptionNotifications;
} else {
json[r'optedInSubscriptionNotifications'] = null;
}
if (this.optedInNotifications != null) {
json[r'optedInNotifications'] = this.optedInNotifications;
} else {
json[r'optedInNotifications'] = null;
}
if (this.avatarSrc != null) {
json[r'avatarSrc'] = this.avatarSrc;
} else {
json[r'avatarSrc'] = null;
}
if (this.loginCount != null) {
json[r'loginCount'] = this.loginCount;
} else {
json[r'loginCount'] = null;
}
if (this.createdFromUrlId != null) {
json[r'createdFromUrlId'] = this.createdFromUrlId;
} else {
json[r'createdFromUrlId'] = null;
}
if (this.signUpDate != null) {
json[r'signUpDate'] = this.signUpDate;
} else {
json[r'signUpDate'] = null;
}
json[r'email'] = this.email;
if (this.websiteUrl != null) {
json[r'websiteUrl'] = this.websiteUrl;
} else {
json[r'websiteUrl'] = null;
}
json[r'username'] = this.username;
json[r'id'] = this.id;
return json;
}