toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.authorized != null) {
json[r'authorized'] = this.authorized;
} else {
json[r'authorized'] = null;
}
if (this.avatarSrc != null) {
json[r'avatarSrc'] = this.avatarSrc;
} else {
json[r'avatarSrc'] = null;
}
json[r'badges'] = this.badges;
if (this.displayLabel != null) {
json[r'displayLabel'] = this.displayLabel;
} else {
json[r'displayLabel'] = null;
}
if (this.displayName != null) {
json[r'displayName'] = this.displayName;
} else {
json[r'displayName'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
json[r'groupIds'] = this.groupIds;
if (this.hasBlockedUsers != null) {
json[r'hasBlockedUsers'] = this.hasBlockedUsers;
} else {
json[r'hasBlockedUsers'] = null;
}
if (this.isAnonSession != null) {
json[r'isAnonSession'] = this.isAnonSession;
} else {
json[r'isAnonSession'] = null;
}
if (this.needsTOS != null) {
json[r'needsTOS'] = this.needsTOS;
} else {
json[r'needsTOS'] = null;
}
if (this.sessionId != null) {
json[r'sessionId'] = this.sessionId;
} else {
json[r'sessionId'] = null;
}
if (this.username != null) {
json[r'username'] = this.username;
} else {
json[r'username'] = null;
}
if (this.websiteUrl != null) {
json[r'websiteUrl'] = this.websiteUrl;
} else {
json[r'websiteUrl'] = null;
}
return json;
}