toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.date != null) {
    json[r'date'] = this.date;
  } else {
    json[r'date'] = null;
  }
  if (this.localDateString != null) {
    json[r'localDateString'] = this.localDateString;
  } else {
    json[r'localDateString'] = null;
  }
  if (this.localDateHours != null) {
    json[r'localDateHours'] = this.localDateHours;
  } else {
    json[r'localDateHours'] = null;
  }
    json[r'commenterName'] = this.commenterName;
  if (this.commenterEmail != null) {
    json[r'commenterEmail'] = this.commenterEmail;
  } else {
    json[r'commenterEmail'] = null;
  }
  if (this.commenterLink != null) {
    json[r'commenterLink'] = this.commenterLink;
  } else {
    json[r'commenterLink'] = null;
  }
    json[r'comment'] = this.comment;
  if (this.productId != null) {
    json[r'productId'] = this.productId;
  } else {
    json[r'productId'] = null;
  }
  if (this.userId != null) {
    json[r'userId'] = this.userId;
  } else {
    json[r'userId'] = null;
  }
  if (this.avatarSrc != null) {
    json[r'avatarSrc'] = this.avatarSrc;
  } else {
    json[r'avatarSrc'] = null;
  }
  if (this.parentId != null) {
    json[r'parentId'] = this.parentId;
  } else {
    json[r'parentId'] = null;
  }
    json[r'mentions'] = this.mentions;
    json[r'hashTags'] = this.hashTags;
  if (this.pageTitle != null) {
    json[r'pageTitle'] = this.pageTitle;
  } else {
    json[r'pageTitle'] = null;
  }
  if (this.isFromMyAccountPage != null) {
    json[r'isFromMyAccountPage'] = this.isFromMyAccountPage;
  } else {
    json[r'isFromMyAccountPage'] = null;
  }
    json[r'url'] = this.url;
    json[r'urlId'] = this.urlId;
  if (this.meta != null) {
    json[r'meta'] = this.meta;
  } else {
    json[r'meta'] = null;
  }
    json[r'moderationGroupIds'] = this.moderationGroupIds;
  if (this.rating != null) {
    json[r'rating'] = this.rating;
  } else {
    json[r'rating'] = null;
  }
  if (this.fromOfflineRestore != null) {
    json[r'fromOfflineRestore'] = this.fromOfflineRestore;
  } else {
    json[r'fromOfflineRestore'] = null;
  }
  if (this.autoplayDelayMS != null) {
    json[r'autoplayDelayMS'] = this.autoplayDelayMS;
  } else {
    json[r'autoplayDelayMS'] = null;
  }
    json[r'feedbackIds'] = this.feedbackIds;
    json[r'questionValues'] = this.questionValues;
  if (this.tos != null) {
    json[r'tos'] = this.tos;
  } else {
    json[r'tos'] = null;
  }
  if (this.botId != null) {
    json[r'botId'] = this.botId;
  } else {
    json[r'botId'] = null;
  }
  return json;
}