toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var json = super.toJson();
  json['maxDevices'] = maxDevices;
  json['maxAssets'] = maxAssets;
  json['maxCustomers'] = maxCustomers;
  json['maxUsers'] = maxUsers;
  json['maxDashboards'] = maxDashboards;
  json['maxRuleChains'] = maxRuleChains;
  json['maxResourcesInBytes'] = maxResourcesInBytes;
  json['maxOtaPackagesInBytes'] = maxOtaPackagesInBytes;

  if (transportTenantMsgRateLimit != null) {
    json['transportTenantMsgRateLimit'] = transportTenantMsgRateLimit;
  }
  if (transportTenantTelemetryMsgRateLimit != null) {
    json['transportTenantTelemetryMsgRateLimit'] =
        transportTenantTelemetryMsgRateLimit;
  }
  if (transportTenantTelemetryDataPointsRateLimit != null) {
    json['transportTenantTelemetryDataPointsRateLimit'] =
        transportTenantTelemetryDataPointsRateLimit;
  }
  if (transportDeviceMsgRateLimit != null) {
    json['transportDeviceMsgRateLimit'] = transportDeviceMsgRateLimit;
  }
  if (transportDeviceTelemetryMsgRateLimit != null) {
    json['transportDeviceTelemetryMsgRateLimit'] =
        transportDeviceTelemetryMsgRateLimit;
  }
  if (transportDeviceTelemetryDataPointsRateLimit != null) {
    json['transportDeviceTelemetryDataPointsRateLimit'] =
        transportDeviceTelemetryDataPointsRateLimit;
  }

  if (tenantEntityExportRateLimit != null) {
    json['tenantEntityExportRateLimit'] = tenantEntityExportRateLimit;
  }
  if (tenantEntityImportRateLimit != null) {
    json['tenantEntityImportRateLimit'] = tenantEntityImportRateLimit;
  }
  if (tenantNotificationRequestsRateLimit != null) {
    json['tenantNotificationRequestsRateLimit'] =
        tenantNotificationRequestsRateLimit;
  }
  if (tenantNotificationRequestsPerRuleRateLimit != null) {
    json['tenantNotificationRequestsPerRuleRateLimit'] =
        tenantNotificationRequestsPerRuleRateLimit;
  }

  json['maxTransportMessages'] = maxTransportMessages;
  json['maxTransportDataPoints'] = maxTransportDataPoints;
  json['maxREExecutions'] = maxREExecutions;
  json['maxJSExecutions'] = maxJSExecutions;
  json['maxDPStorageDays'] = maxDPStorageDays;
  json['maxRuleNodeExecutionsPerMessage'] = maxRuleNodeExecutionsPerMessage;
  json['maxEmails'] = maxEmails;
  json['smsEnabled'] = smsEnabled;
  json['maxSms'] = maxSms;
  json['maxCreatedAlarms'] = maxCreatedAlarms;

  json['maxWsSessionsPerTenant'] = maxWsSessionsPerTenant;
  json['maxWsSessionsPerCustomer'] = maxWsSessionsPerCustomer;
  json['maxWsSessionsPerRegularUser'] = maxWsSessionsPerRegularUser;
  json['maxWsSessionsPerPublicUser'] = maxWsSessionsPerPublicUser;
  json['wsMsgQueueLimitPerSession'] = wsMsgQueueLimitPerSession;
  json['maxWsSubscriptionsPerTenant'] = maxWsSubscriptionsPerTenant;
  json['maxWsSubscriptionsPerCustomer'] = maxWsSubscriptionsPerCustomer;
  json['maxWsSubscriptionsPerRegularUser'] = maxWsSubscriptionsPerRegularUser;
  json['maxWsSubscriptionsPerPublicUser'] = maxWsSubscriptionsPerPublicUser;
  if (wsUpdatesPerSessionRateLimit != null) {
    json['wsUpdatesPerSessionRateLimit'] = wsUpdatesPerSessionRateLimit;
  }

  json['defaultStorageTtlDays'] = defaultStorageTtlDays;
  json['alarmsTtlDays'] = alarmsTtlDays;
  json['rpcTtlDays'] = rpcTtlDays;
  return json;
}