toJson method
Implementation
Map<String, dynamic> toJson() {
final m = <String, dynamic>{
'id': id,
'email': email,
'username': username,
'avatar': avatar,
};
if (optedInNotifications != null) m['optedInNotifications'] = optedInNotifications;
if (displayLabel != null) m['displayLabel'] = displayLabel;
if (displayName != null) m['displayName'] = displayName;
if (websiteUrl != null) m['websiteUrl'] = websiteUrl;
if (groupIds != null) m['groupIds'] = groupIds;
if (isAdmin != null) m['isAdmin'] = isAdmin;
if (isModerator != null) m['isModerator'] = isModerator;
if (isProfileActivityPrivate != null) m['isProfileActivityPrivate'] = isProfileActivityPrivate;
return m;
}