RoutedUsage class

Constructors

RoutedUsage({String? account, String? billing, int? completionTokens, int? costCents, String? kind, int? promptTokens, String? provider, int? requests, int? totalTokens})
Returns a new RoutedUsage instance.

Properties

account ↔ String?
Account is the provider-side account identifier.
getter/setter pair
billing ↔ String?
Billing is how the routed inference bills: plan or commerce.
getter/setter pair
completionTokens ↔ int?
CompletionTokens is the routed completion-token count.
getter/setter pair
costCents ↔ int?
CostCents is the routed cost in cents.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
kind ↔ String?
Kind is how the account authenticates: subscription or apikey.
getter/setter pair
promptTokens ↔ int?
PromptTokens is the routed prompt-token count.
getter/setter pair
provider ↔ String?
Provider is the AI provider the row's account belongs to.
getter/setter pair
requests ↔ int?
Requests is how many requests the gateway routed through this account.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalTokens ↔ int?
TotalTokens is the routed total token count.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → RoutedUsage?
Returns a new RoutedUsage instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RoutedUsage>
mapFromJson(dynamic json) → Map<String, RoutedUsage>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RoutedUsage>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.