toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'name'] = this.name;
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
    json[r'signUpDate'] = this.signUpDate;
    json[r'packageId'] = this.packageId;
    json[r'paymentFrequency'] = this.paymentFrequency;
    json[r'billingInfoValid'] = this.billingInfoValid;
  if (this.billingHandledExternally != null) {
    json[r'billingHandledExternally'] = this.billingHandledExternally;
  } else {
    json[r'billingHandledExternally'] = null;
  }
    json[r'createdBy'] = this.createdBy;
    json[r'isSetup'] = this.isSetup;
    json[r'domainConfiguration'] = this.domainConfiguration;
  if (this.billingInfo != null) {
    json[r'billingInfo'] = this.billingInfo;
  } else {
    json[r'billingInfo'] = null;
  }
  if (this.stripeCustomerId != null) {
    json[r'stripeCustomerId'] = this.stripeCustomerId;
  } else {
    json[r'stripeCustomerId'] = null;
  }
  if (this.stripeSubscriptionId != null) {
    json[r'stripeSubscriptionId'] = this.stripeSubscriptionId;
  } else {
    json[r'stripeSubscriptionId'] = null;
  }
  if (this.stripePlanId != null) {
    json[r'stripePlanId'] = this.stripePlanId;
  } else {
    json[r'stripePlanId'] = null;
  }
    json[r'enableProfanityFilter'] = this.enableProfanityFilter;
    json[r'enableSpamFilter'] = this.enableSpamFilter;
  if (this.lastBillingIssueReminderDate != null) {
    json[r'lastBillingIssueReminderDate'] = this.lastBillingIssueReminderDate!.toUtc().toIso8601String();
  } else {
    json[r'lastBillingIssueReminderDate'] = null;
  }
  if (this.removeUnverifiedComments != null) {
    json[r'removeUnverifiedComments'] = this.removeUnverifiedComments;
  } else {
    json[r'removeUnverifiedComments'] = null;
  }
  if (this.unverifiedCommentsTTLms != null) {
    json[r'unverifiedCommentsTTLms'] = this.unverifiedCommentsTTLms;
  } else {
    json[r'unverifiedCommentsTTLms'] = null;
  }
  if (this.commentsRequireApproval != null) {
    json[r'commentsRequireApproval'] = this.commentsRequireApproval;
  } else {
    json[r'commentsRequireApproval'] = null;
  }
  if (this.autoApproveCommentOnVerification != null) {
    json[r'autoApproveCommentOnVerification'] = this.autoApproveCommentOnVerification;
  } else {
    json[r'autoApproveCommentOnVerification'] = null;
  }
  if (this.sendProfaneToSpam != null) {
    json[r'sendProfaneToSpam'] = this.sendProfaneToSpam;
  } else {
    json[r'sendProfaneToSpam'] = null;
  }
  if (this.hasFlexPricing != null) {
    json[r'hasFlexPricing'] = this.hasFlexPricing;
  } else {
    json[r'hasFlexPricing'] = null;
  }
  if (this.hasAuditing != null) {
    json[r'hasAuditing'] = this.hasAuditing;
  } else {
    json[r'hasAuditing'] = null;
  }
  if (this.flexLastBilledAmount != null) {
    json[r'flexLastBilledAmount'] = this.flexLastBilledAmount;
  } else {
    json[r'flexLastBilledAmount'] = null;
  }
  if (this.deAnonIpAddr != null) {
    json[r'deAnonIpAddr'] = this.deAnonIpAddr;
  } else {
    json[r'deAnonIpAddr'] = null;
  }
    json[r'meta'] = this.meta;
  return json;
}