UsagePoint class
Constructors
- UsagePoint({int? requests, int? spendCents, String? t, int? tokens})
- Returns a new UsagePoint instance.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- requests ↔ int?
-
Requests is how many LLM calls fell in this bucket.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spendCents ↔ int?
-
SpendCents is what they cost, in cents.
getter/setter pair
- t ↔ String?
-
T is the bucket's start, RFC3339 UTC, aligned to the interval.
getter/setter pair
- tokens ↔ int?
-
Tokens is prompt plus completion tokens over those calls.
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) → UsagePoint? -
Returns a new UsagePoint instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< UsagePoint> -
mapFromJson(
dynamic json) → Map< String, UsagePoint> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< UsagePoint> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.