toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.statusCode != null) {
    json[r'statusCode'] = this.statusCode;
  } else {
    json[r'statusCode'] = null;
  }
    json[r'status'] = this.status;
  if (this.code != null) {
    json[r'code'] = this.code;
  } else {
    json[r'code'] = null;
  }
  if (this.reason != null) {
    json[r'reason'] = this.reason;
  } else {
    json[r'reason'] = null;
  }
  if (this.translatedWarning != null) {
    json[r'translatedWarning'] = this.translatedWarning;
  } else {
    json[r'translatedWarning'] = null;
  }
    json[r'comments'] = this.comments;
  if (this.user != null) {
    json[r'user'] = this.user;
  } else {
    json[r'user'] = null;
  }
  if (this.urlIdClean != null) {
    json[r'urlIdClean'] = this.urlIdClean;
  } else {
    json[r'urlIdClean'] = null;
  }
  if (this.lastGenDate != null) {
    json[r'lastGenDate'] = this.lastGenDate;
  } else {
    json[r'lastGenDate'] = null;
  }
  if (this.includesPastPages != null) {
    json[r'includesPastPages'] = this.includesPastPages;
  } else {
    json[r'includesPastPages'] = null;
  }
  if (this.isDemo != null) {
    json[r'isDemo'] = this.isDemo;
  } else {
    json[r'isDemo'] = null;
  }
  if (this.commentCount != null) {
    json[r'commentCount'] = this.commentCount;
  } else {
    json[r'commentCount'] = null;
  }
  if (this.isSiteAdmin != null) {
    json[r'isSiteAdmin'] = this.isSiteAdmin;
  } else {
    json[r'isSiteAdmin'] = null;
  }
  if (this.hasBillingIssue != null) {
    json[r'hasBillingIssue'] = this.hasBillingIssue;
  } else {
    json[r'hasBillingIssue'] = null;
  }
    json[r'moduleData'] = this.moduleData;
    json[r'pageNumber'] = this.pageNumber;
  if (this.isWhiteLabeled != null) {
    json[r'isWhiteLabeled'] = this.isWhiteLabeled;
  } else {
    json[r'isWhiteLabeled'] = null;
  }
  if (this.isProd != null) {
    json[r'isProd'] = this.isProd;
  } else {
    json[r'isProd'] = null;
  }
  if (this.isCrawler != null) {
    json[r'isCrawler'] = this.isCrawler;
  } else {
    json[r'isCrawler'] = null;
  }
  if (this.notificationCount != null) {
    json[r'notificationCount'] = this.notificationCount;
  } else {
    json[r'notificationCount'] = null;
  }
  if (this.hasMore != null) {
    json[r'hasMore'] = this.hasMore;
  } else {
    json[r'hasMore'] = null;
  }
  if (this.isClosed != null) {
    json[r'isClosed'] = this.isClosed;
  } else {
    json[r'isClosed'] = null;
  }
  if (this.presencePollState != null) {
    json[r'presencePollState'] = this.presencePollState;
  } else {
    json[r'presencePollState'] = null;
  }
  if (this.customConfig != null) {
    json[r'customConfig'] = this.customConfig;
  } else {
    json[r'customConfig'] = null;
  }
  return json;
}