toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (balancingMode != null) 'balancingMode': balancingMode!,
      if (capacityScaler != null) 'capacityScaler': capacityScaler!,
      if (description != null) 'description': description!,
      if (failover != null) 'failover': failover!,
      if (group != null) 'group': group!,
      if (maxConnections != null) 'maxConnections': maxConnections!,
      if (maxConnectionsPerEndpoint != null)
        'maxConnectionsPerEndpoint': maxConnectionsPerEndpoint!,
      if (maxConnectionsPerInstance != null)
        'maxConnectionsPerInstance': maxConnectionsPerInstance!,
      if (maxRate != null) 'maxRate': maxRate!,
      if (maxRatePerEndpoint != null)
        'maxRatePerEndpoint': maxRatePerEndpoint!,
      if (maxRatePerInstance != null)
        'maxRatePerInstance': maxRatePerInstance!,
      if (maxUtilization != null) 'maxUtilization': maxUtilization!,
      if (preference != null) 'preference': preference!,
    };