ModelRow class

Constructors

ModelRow({String? model, num? pct, String? provider, int? requests, int? spendCents, int? tokens})
Returns a new ModelRow instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
model ↔ String?
Model is the model id, e.g. zen5-coder.
getter/setter pair
pct ↔ num?
Pct is this model's share of the window's returned spend, 0..100, one decimal.
getter/setter pair
provider ↔ String?
Provider is who served it.
getter/setter pair
requests ↔ int?
Requests is how many calls went to this model.
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
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) → ModelRow?
Returns a new ModelRow instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ModelRow>
mapFromJson(dynamic json) → Map<String, ModelRow>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ModelRow>>

Constants

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