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;
    json[r'tenantId'] = this.tenantId;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.templateId != null) {
    json[r'templateId'] = this.templateId;
  } else {
    json[r'templateId'] = null;
  }
  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;
    json[r'maxMonthlySmallWidgetsCredits'] = this.maxMonthlySmallWidgetsCredits;
    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;
    json[r'maxWhiteLabeledTenants'] = this.maxWhiteLabeledTenants;
    json[r'maxMonthlyEventLogRequests'] = this.maxMonthlyEventLogRequests;
    json[r'maxCustomCollectionSize'] = this.maxCustomCollectionSize;
    json[r'hasWhiteLabeling'] = this.hasWhiteLabeling;
    json[r'hasDebranding'] = this.hasDebranding;
    json[r'hasLLMSpamDetection'] = this.hasLLMSpamDetection;
    json[r'forWhoText'] = this.forWhoText;
    json[r'featureTaglines'] = this.featureTaglines;
    json[r'hasAuditing'] = this.hasAuditing;
    json[r'hasFlexPricing'] = this.hasFlexPricing;
  if (this.enableSAML != null) {
    json[r'enableSAML'] = this.enableSAML;
  } else {
    json[r'enableSAML'] = null;
  }
  if (this.enableCanvasLTI != null) {
    json[r'enableCanvasLTI'] = this.enableCanvasLTI;
  } else {
    json[r'enableCanvasLTI'] = 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.flexChatGPTCostCents != null) {
    json[r'flexChatGPTCostCents'] = this.flexChatGPTCostCents;
  } else {
    json[r'flexChatGPTCostCents'] = null;
  }
  if (this.flexChatGPTUnit != null) {
    json[r'flexChatGPTUnit'] = this.flexChatGPTUnit;
  } else {
    json[r'flexChatGPTUnit'] = 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;
  }
  if (this.isSSOBillingMonthlyActiveUsers != null) {
    json[r'isSSOBillingMonthlyActiveUsers'] = this.isSSOBillingMonthlyActiveUsers;
  } else {
    json[r'isSSOBillingMonthlyActiveUsers'] = null;
  }
  if (this.hasAIAgents != null) {
    json[r'hasAIAgents'] = this.hasAIAgents;
  } else {
    json[r'hasAIAgents'] = null;
  }
  if (this.maxAIAgents != null) {
    json[r'maxAIAgents'] = this.maxAIAgents;
  } else {
    json[r'maxAIAgents'] = null;
  }
  if (this.aiAgentDailyBudgetCents != null) {
    json[r'aiAgentDailyBudgetCents'] = this.aiAgentDailyBudgetCents;
  } else {
    json[r'aiAgentDailyBudgetCents'] = null;
  }
  if (this.aiAgentMonthlyBudgetCents != null) {
    json[r'aiAgentMonthlyBudgetCents'] = this.aiAgentMonthlyBudgetCents;
  } else {
    json[r'aiAgentMonthlyBudgetCents'] = null;
  }
  return json;
}