toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.reviewed != null) {
    json[r'reviewed'] = this.reviewed;
  } else {
    json[r'reviewed'] = null;
  }
  if (this.approved != null) {
    json[r'approved'] = this.approved;
  } else {
    json[r'approved'] = null;
  }
  if (this.isSpam != null) {
    json[r'isSpam'] = this.isSpam;
  } else {
    json[r'isSpam'] = null;
  }
  if (this.isBannedUser != null) {
    json[r'isBannedUser'] = this.isBannedUser;
  } else {
    json[r'isBannedUser'] = null;
  }
  if (this.isLocked != null) {
    json[r'isLocked'] = this.isLocked;
  } else {
    json[r'isLocked'] = null;
  }
  if (this.flagCountGt != null) {
    json[r'flagCountGt'] = this.flagCountGt;
  } else {
    json[r'flagCountGt'] = null;
  }
  if (this.userId != null) {
    json[r'userId'] = this.userId;
  } else {
    json[r'userId'] = null;
  }
  if (this.urlId != null) {
    json[r'urlId'] = this.urlId;
  } else {
    json[r'urlId'] = null;
  }
  if (this.domain != null) {
    json[r'domain'] = this.domain;
  } else {
    json[r'domain'] = null;
  }
    json[r'moderationGroupIds'] = this.moderationGroupIds;
    json[r'commentTextSearch'] = this.commentTextSearch;
  if (this.exactCommentText != null) {
    json[r'exactCommentText'] = this.exactCommentText;
  } else {
    json[r'exactCommentText'] = null;
  }
  return json;
}