Sub2ApiAdminChannelModelPricing constructor

Sub2ApiAdminChannelModelPricing({
  1. required int id,
  2. required String platform,
  3. required List<String> models,
  4. required Sub2ApiAdminChannelBillingMode billingMode,
  5. required List<Sub2ApiAdminChannelPricingInterval> intervals,
  6. Sub2ApiDecimal? inputPrice,
  7. Sub2ApiDecimal? outputPrice,
  8. Sub2ApiDecimal? cacheWritePrice,
  9. Sub2ApiDecimal? cacheReadPrice,
  10. Sub2ApiDecimal? fastMultiplier,
  11. Sub2ApiDecimal? flexMultiplier,
  12. Sub2ApiDecimal? imageInputPrice,
  13. Sub2ApiDecimal? imageOutputPrice,
  14. Sub2ApiDecimal? perRequestPrice,
  15. Sub2ApiAdminChannelTimePricing? timePricing,
})

Implementation

Sub2ApiAdminChannelModelPricing({
  required this.id,
  required this.platform,
  required List<String> models,
  required this.billingMode,
  required List<Sub2ApiAdminChannelPricingInterval> intervals,
  this.inputPrice,
  this.outputPrice,
  this.cacheWritePrice,
  this.cacheReadPrice,
  this.fastMultiplier,
  this.flexMultiplier,
  this.imageInputPrice,
  this.imageOutputPrice,
  this.perRequestPrice,
  this.timePricing,
}) : models = List.unmodifiable(models),
     intervals = List.unmodifiable(intervals);