toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
  if (this.monthlyCostUSD != null) {
    json[r'monthlyCostUSD'] = this.monthlyCostUSD;
  } else {
    json[r'monthlyCostUSD'] = null;
  }
  if (this.yearlyCostUSD != null) {
    json[r'yearlyCostUSD'] = this.yearlyCostUSD;
  } else {
    json[r'yearlyCostUSD'] = null;
  }
  if (this.monthlyStripePlanId != null) {
    json[r'monthlyStripePlanId'] = this.monthlyStripePlanId;
  } else {
    json[r'monthlyStripePlanId'] = null;
  }
  if (this.yearlyStripePlanId != null) {
    json[r'yearlyStripePlanId'] = this.yearlyStripePlanId;
  } else {
    json[r'yearlyStripePlanId'] = null;
  }
    json[r'maxMonthlyPageLoads'] = this.maxMonthlyPageLoads;
    json[r'maxMonthlyAPICredits'] = this.maxMonthlyAPICredits;
  if (this.maxMonthlySmallWidgetsCredits != null) {
    json[r'maxMonthlySmallWidgetsCredits'] = this.maxMonthlySmallWidgetsCredits;
  } else {
    json[r'maxMonthlySmallWidgetsCredits'] = null;
  }
    json[r'maxMonthlyComments'] = this.maxMonthlyComments;
    json[r'maxConcurrentUsers'] = this.maxConcurrentUsers;
    json[r'maxTenantUsers'] = this.maxTenantUsers;
    json[r'maxSSOUsers'] = this.maxSSOUsers;
    json[r'maxModerators'] = this.maxModerators;
    json[r'maxDomains'] = this.maxDomains;
  if (this.maxWhiteLabeledTenants != null) {
    json[r'maxWhiteLabeledTenants'] = this.maxWhiteLabeledTenants;
  } else {
    json[r'maxWhiteLabeledTenants'] = null;
  }
  if (this.maxMonthlyEventLogRequests != null) {
    json[r'maxMonthlyEventLogRequests'] = this.maxMonthlyEventLogRequests;
  } else {
    json[r'maxMonthlyEventLogRequests'] = null;
  }
  if (this.maxCustomCollectionSize != null) {
    json[r'maxCustomCollectionSize'] = this.maxCustomCollectionSize;
  } else {
    json[r'maxCustomCollectionSize'] = null;
  }
  if (this.hasWhiteLabeling != null) {
    json[r'hasWhiteLabeling'] = this.hasWhiteLabeling;
  } else {
    json[r'hasWhiteLabeling'] = null;
  }
    json[r'hasDebranding'] = this.hasDebranding;
  if (this.hasLLMSpamDetection != null) {
    json[r'hasLLMSpamDetection'] = this.hasLLMSpamDetection;
  } else {
    json[r'hasLLMSpamDetection'] = null;
  }
    json[r'forWhoText'] = this.forWhoText;
    json[r'featureTaglines'] = this.featureTaglines;
  if (this.hasAuditing != null) {
    json[r'hasAuditing'] = this.hasAuditing;
  } else {
    json[r'hasAuditing'] = null;
  }
    json[r'hasFlexPricing'] = this.hasFlexPricing;
  if (this.enableSAML != null) {
    json[r'enableSAML'] = this.enableSAML;
  } else {
    json[r'enableSAML'] = null;
  }
  if (this.flexPageLoadCostCents != null) {
    json[r'flexPageLoadCostCents'] = this.flexPageLoadCostCents;
  } else {
    json[r'flexPageLoadCostCents'] = null;
  }
  if (this.flexPageLoadUnit != null) {
    json[r'flexPageLoadUnit'] = this.flexPageLoadUnit;
  } else {
    json[r'flexPageLoadUnit'] = null;
  }
  if (this.flexCommentCostCents != null) {
    json[r'flexCommentCostCents'] = this.flexCommentCostCents;
  } else {
    json[r'flexCommentCostCents'] = null;
  }
  if (this.flexCommentUnit != null) {
    json[r'flexCommentUnit'] = this.flexCommentUnit;
  } else {
    json[r'flexCommentUnit'] = null;
  }
  if (this.flexSSOUserCostCents != null) {
    json[r'flexSSOUserCostCents'] = this.flexSSOUserCostCents;
  } else {
    json[r'flexSSOUserCostCents'] = null;
  }
  if (this.flexSSOUserUnit != null) {
    json[r'flexSSOUserUnit'] = this.flexSSOUserUnit;
  } else {
    json[r'flexSSOUserUnit'] = null;
  }
  if (this.flexAPICreditCostCents != null) {
    json[r'flexAPICreditCostCents'] = this.flexAPICreditCostCents;
  } else {
    json[r'flexAPICreditCostCents'] = null;
  }
  if (this.flexAPICreditUnit != null) {
    json[r'flexAPICreditUnit'] = this.flexAPICreditUnit;
  } else {
    json[r'flexAPICreditUnit'] = null;
  }
  if (this.flexSmallWidgetsCreditCostCents != null) {
    json[r'flexSmallWidgetsCreditCostCents'] = this.flexSmallWidgetsCreditCostCents;
  } else {
    json[r'flexSmallWidgetsCreditCostCents'] = null;
  }
  if (this.flexSmallWidgetsCreditUnit != null) {
    json[r'flexSmallWidgetsCreditUnit'] = this.flexSmallWidgetsCreditUnit;
  } else {
    json[r'flexSmallWidgetsCreditUnit'] = null;
  }
  if (this.flexModeratorCostCents != null) {
    json[r'flexModeratorCostCents'] = this.flexModeratorCostCents;
  } else {
    json[r'flexModeratorCostCents'] = null;
  }
  if (this.flexModeratorUnit != null) {
    json[r'flexModeratorUnit'] = this.flexModeratorUnit;
  } else {
    json[r'flexModeratorUnit'] = null;
  }
  if (this.flexAdminCostCents != null) {
    json[r'flexAdminCostCents'] = this.flexAdminCostCents;
  } else {
    json[r'flexAdminCostCents'] = null;
  }
  if (this.flexAdminUnit != null) {
    json[r'flexAdminUnit'] = this.flexAdminUnit;
  } else {
    json[r'flexAdminUnit'] = null;
  }
  if (this.flexDomainCostCents != null) {
    json[r'flexDomainCostCents'] = this.flexDomainCostCents;
  } else {
    json[r'flexDomainCostCents'] = null;
  }
  if (this.flexDomainUnit != null) {
    json[r'flexDomainUnit'] = this.flexDomainUnit;
  } else {
    json[r'flexDomainUnit'] = null;
  }
  if (this.flexLLMCostCents != null) {
    json[r'flexLLMCostCents'] = this.flexLLMCostCents;
  } else {
    json[r'flexLLMCostCents'] = null;
  }
  if (this.flexLLMUnit != null) {
    json[r'flexLLMUnit'] = this.flexLLMUnit;
  } else {
    json[r'flexLLMUnit'] = null;
  }
  if (this.flexMinimumCostCents != null) {
    json[r'flexMinimumCostCents'] = this.flexMinimumCostCents;
  } else {
    json[r'flexMinimumCostCents'] = null;
  }
  if (this.flexManagedTenantCostCents != null) {
    json[r'flexManagedTenantCostCents'] = this.flexManagedTenantCostCents;
  } else {
    json[r'flexManagedTenantCostCents'] = null;
  }
  if (this.flexSSOAdminCostCents != null) {
    json[r'flexSSOAdminCostCents'] = this.flexSSOAdminCostCents;
  } else {
    json[r'flexSSOAdminCostCents'] = null;
  }
  if (this.flexSSOAdminUnit != null) {
    json[r'flexSSOAdminUnit'] = this.flexSSOAdminUnit;
  } else {
    json[r'flexSSOAdminUnit'] = null;
  }
  if (this.flexSSOModeratorCostCents != null) {
    json[r'flexSSOModeratorCostCents'] = this.flexSSOModeratorCostCents;
  } else {
    json[r'flexSSOModeratorCostCents'] = null;
  }
  if (this.flexSSOModeratorUnit != null) {
    json[r'flexSSOModeratorUnit'] = this.flexSSOModeratorUnit;
  } else {
    json[r'flexSSOModeratorUnit'] = null;
  }
  return json;
}