Sub2ApiAdminUpdateGroupRequest constructor
Sub2ApiAdminUpdateGroupRequest({
- String? name,
- String? description,
- Sub2ApiAdminGroupPlatform? platform,
- Sub2ApiDecimal? rateMultiplier,
- bool? isExclusive,
- Sub2ApiAdminGroupStatus? status,
- Sub2ApiAdminGroupSubscriptionType? subscriptionType,
- Sub2ApiAdminLimitUpdate dailyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
- Sub2ApiAdminLimitUpdate weeklyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
- Sub2ApiAdminLimitUpdate monthlyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
- bool? longContextPricingEnabled,
- List<
Sub2ApiAdminModelPricing> ? modelPricing, - bool? allowImageGeneration,
- bool? allowBatchImageGeneration,
- bool? imageRateIndependent,
- Sub2ApiDecimal? imageRateMultiplier,
- Sub2ApiDecimal? batchImageDiscountMultiplier,
- Sub2ApiDecimal? batchImageHoldMultiplier,
- bool? videoRateIndependent,
- Sub2ApiDecimal? videoRateMultiplier,
- bool? peakRateEnabled,
- String? peakStart,
- String? peakEnd,
- Sub2ApiDecimal? peakRateMultiplier,
- bool? profitControlEnabled,
- Sub2ApiDecimal? profitMinMargin,
- Sub2ApiDecimal? profitSafetyBuffer,
- Sub2ApiDecimal? imagePrice1k,
- Sub2ApiDecimal? imagePrice2k,
- Sub2ApiDecimal? imagePrice4k,
- Sub2ApiDecimal? videoPrice480p,
- Sub2ApiDecimal? videoPrice720p,
- Sub2ApiDecimal? videoPrice1080p,
- Map<
String, Map< ? videoModelPrices,String, Sub2ApiDecimal> > - Sub2ApiDecimal? webSearchPricePerCall,
- Sub2ApiDecimal? searchPricePer1k,
- Sub2ApiDecimal? audioRealtimePricePerMin,
- Sub2ApiDecimal? audioTtsPricePerMillionChars,
- Sub2ApiDecimal? audioSttPricePerHour,
- bool? claudeCodeOnly,
- int? fallbackGroupId,
- int? fallbackGroupIdOnInvalidRequest,
- Map<
String, List< ? modelRouting,int> > - bool? modelRoutingEnabled,
- bool? mcpXmlInject,
- List<
String> ? supportedModelScopes, - bool? allowMessagesDispatch,
- bool? allowLive,
- bool? requireOAuthOnly,
- bool? requirePrivacySet,
- String? defaultMappedModel,
- Sub2ApiAdminMessagesDispatchModelConfig? messagesDispatchModelConfig,
- Sub2ApiAdminGroupModelsListConfig? modelsListConfig,
- int? rpmLimit,
- String? maxReasoningEffort,
- List<
Sub2ApiAdminReasoningEffortMapping> ? reasoningEffortMappings, - List<
int> ? copyAccountsFromGroupIds,
Implementation
Sub2ApiAdminUpdateGroupRequest({
this.name,
this.description,
this.platform,
this.rateMultiplier,
this.isExclusive,
this.status,
this.subscriptionType,
this.dailyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
this.weeklyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
this.monthlyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
this.longContextPricingEnabled,
List<Sub2ApiAdminModelPricing>? modelPricing,
this.allowImageGeneration,
this.allowBatchImageGeneration,
this.imageRateIndependent,
this.imageRateMultiplier,
this.batchImageDiscountMultiplier,
this.batchImageHoldMultiplier,
this.videoRateIndependent,
this.videoRateMultiplier,
this.peakRateEnabled,
this.peakStart,
this.peakEnd,
this.peakRateMultiplier,
this.profitControlEnabled,
this.profitMinMargin,
this.profitSafetyBuffer,
this.imagePrice1k,
this.imagePrice2k,
this.imagePrice4k,
this.videoPrice480p,
this.videoPrice720p,
this.videoPrice1080p,
Map<String, Map<String, Sub2ApiDecimal>>? videoModelPrices,
this.webSearchPricePerCall,
this.searchPricePer1k,
this.audioRealtimePricePerMin,
this.audioTtsPricePerMillionChars,
this.audioSttPricePerHour,
this.claudeCodeOnly,
this.fallbackGroupId,
this.fallbackGroupIdOnInvalidRequest,
Map<String, List<int>>? modelRouting,
this.modelRoutingEnabled,
this.mcpXmlInject,
List<String>? supportedModelScopes,
this.allowMessagesDispatch,
this.allowLive,
this.requireOAuthOnly,
this.requirePrivacySet,
this.defaultMappedModel,
this.messagesDispatchModelConfig,
this.modelsListConfig,
this.rpmLimit,
this.maxReasoningEffort,
List<Sub2ApiAdminReasoningEffortMapping>? reasoningEffortMappings,
List<int>? copyAccountsFromGroupIds,
}) : modelPricing = modelPricing == null
? null
: List.unmodifiable(modelPricing),
videoModelPrices = videoModelPrices == null
? null
: Map.unmodifiable(
videoModelPrices.map(
(key, value) => MapEntry(
key,
Map<String, Sub2ApiDecimal>.unmodifiable(value),
),
),
),
modelRouting = modelRouting == null
? null
: Map.unmodifiable(
modelRouting.map(
(key, value) => MapEntry(key, List<int>.unmodifiable(value)),
),
),
supportedModelScopes = supportedModelScopes == null
? null
: List.unmodifiable(supportedModelScopes),
reasoningEffortMappings = reasoningEffortMappings == null
? null
: List.unmodifiable(reasoningEffortMappings),
copyAccountsFromGroupIds = copyAccountsFromGroupIds == null
? null
: List.unmodifiable(copyAccountsFromGroupIds);