Sub2ApiAdminUpdateGroupRequest constructor

Sub2ApiAdminUpdateGroupRequest({
  1. String? name,
  2. String? description,
  3. Sub2ApiAdminGroupPlatform? platform,
  4. Sub2ApiDecimal? rateMultiplier,
  5. bool? isExclusive,
  6. Sub2ApiAdminGroupStatus? status,
  7. Sub2ApiAdminGroupSubscriptionType? subscriptionType,
  8. Sub2ApiAdminLimitUpdate dailyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
  9. Sub2ApiAdminLimitUpdate weeklyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
  10. Sub2ApiAdminLimitUpdate monthlyLimitUsd = const Sub2ApiAdminLimitUpdate.unchanged(),
  11. bool? longContextPricingEnabled,
  12. List<Sub2ApiAdminModelPricing>? modelPricing,
  13. bool? allowImageGeneration,
  14. bool? allowBatchImageGeneration,
  15. bool? imageRateIndependent,
  16. Sub2ApiDecimal? imageRateMultiplier,
  17. Sub2ApiDecimal? batchImageDiscountMultiplier,
  18. Sub2ApiDecimal? batchImageHoldMultiplier,
  19. bool? videoRateIndependent,
  20. Sub2ApiDecimal? videoRateMultiplier,
  21. bool? peakRateEnabled,
  22. String? peakStart,
  23. String? peakEnd,
  24. Sub2ApiDecimal? peakRateMultiplier,
  25. bool? profitControlEnabled,
  26. Sub2ApiDecimal? profitMinMargin,
  27. Sub2ApiDecimal? profitSafetyBuffer,
  28. Sub2ApiDecimal? imagePrice1k,
  29. Sub2ApiDecimal? imagePrice2k,
  30. Sub2ApiDecimal? imagePrice4k,
  31. Sub2ApiDecimal? videoPrice480p,
  32. Sub2ApiDecimal? videoPrice720p,
  33. Sub2ApiDecimal? videoPrice1080p,
  34. Map<String, Map<String, Sub2ApiDecimal>>? videoModelPrices,
  35. Sub2ApiDecimal? webSearchPricePerCall,
  36. Sub2ApiDecimal? searchPricePer1k,
  37. Sub2ApiDecimal? audioRealtimePricePerMin,
  38. Sub2ApiDecimal? audioTtsPricePerMillionChars,
  39. Sub2ApiDecimal? audioSttPricePerHour,
  40. bool? claudeCodeOnly,
  41. int? fallbackGroupId,
  42. int? fallbackGroupIdOnInvalidRequest,
  43. Map<String, List<int>>? modelRouting,
  44. bool? modelRoutingEnabled,
  45. bool? mcpXmlInject,
  46. List<String>? supportedModelScopes,
  47. bool? allowMessagesDispatch,
  48. bool? allowLive,
  49. bool? requireOAuthOnly,
  50. bool? requirePrivacySet,
  51. String? defaultMappedModel,
  52. Sub2ApiAdminMessagesDispatchModelConfig? messagesDispatchModelConfig,
  53. Sub2ApiAdminGroupModelsListConfig? modelsListConfig,
  54. int? rpmLimit,
  55. String? maxReasoningEffort,
  56. List<Sub2ApiAdminReasoningEffortMapping>? reasoningEffortMappings,
  57. 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);