toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
    json[r'domainConfiguration'] = this.domainConfiguration;
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
  if (this.signUpDate != null) {
    json[r'signUpDate'] = this.signUpDate;
  } else {
    json[r'signUpDate'] = null;
  }
  if (this.packageId != null) {
    json[r'packageId'] = this.packageId;
  } else {
    json[r'packageId'] = null;
  }
  if (this.paymentFrequency != null) {
    json[r'paymentFrequency'] = this.paymentFrequency;
  } else {
    json[r'paymentFrequency'] = null;
  }
  if (this.billingInfoValid != null) {
    json[r'billingInfoValid'] = this.billingInfoValid;
  } else {
    json[r'billingInfoValid'] = null;
  }
  if (this.billingHandledExternally != null) {
    json[r'billingHandledExternally'] = this.billingHandledExternally;
  } else {
    json[r'billingHandledExternally'] = null;
  }
  if (this.createdBy != null) {
    json[r'createdBy'] = this.createdBy;
  } else {
    json[r'createdBy'] = null;
  }
  if (this.isSetup != null) {
    json[r'isSetup'] = this.isSetup;
  } else {
    json[r'isSetup'] = null;
  }
  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;
  }
  if (this.enableProfanityFilter != null) {
    json[r'enableProfanityFilter'] = this.enableProfanityFilter;
  } else {
    json[r'enableProfanityFilter'] = null;
  }
  if (this.enableSpamFilter != null) {
    json[r'enableSpamFilter'] = this.enableSpamFilter;
  } else {
    json[r'enableSpamFilter'] = 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.deAnonIpAddr != null) {
    json[r'deAnonIpAddr'] = this.deAnonIpAddr;
  } else {
    json[r'deAnonIpAddr'] = null;
  }
    json[r'meta'] = this.meta;
  return json;
}