toJson method

Map<String, dynamic> toJson()

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;
  }
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
  if (this.websiteUrl != null) {
    json[r'websiteUrl'] = this.websiteUrl;
  } else {
    json[r'websiteUrl'] = null;
  }
  if (this.username != null) {
    json[r'username'] = this.username;
  } else {
    json[r'username'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  return json;
}