toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'username'] = this.username;
    json[r'websiteUrl'] = this.websiteUrl;
    json[r'email'] = this.email;
    json[r'signUpDate'] = this.signUpDate;
    json[r'createdFromUrlId'] = this.createdFromUrlId;
    json[r'loginCount'] = this.loginCount;
    json[r'avatarSrc'] = this.avatarSrc;
    json[r'optedInNotifications'] = this.optedInNotifications;
    json[r'optedInSubscriptionNotifications'] = this.optedInSubscriptionNotifications;
    json[r'displayLabel'] = this.displayLabel;
    json[r'displayName'] = this.displayName;
  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.isCommentModeratorAdmin != null) {
    json[r'isCommentModeratorAdmin'] = this.isCommentModeratorAdmin;
  } else {
    json[r'isCommentModeratorAdmin'] = 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.hasBlockedUsers != null) {
    json[r'hasBlockedUsers'] = this.hasBlockedUsers;
  } else {
    json[r'hasBlockedUsers'] = null;
  }
    json[r'groupIds'] = this.groupIds;
  return json;
}