Usage class

Constructors

Usage.new({required int promptTokens, required String promptUnitPrice, required String promptPrice, required int completionTokens, required String completionUnitPrice, required String completionPrice, required int totalTokens, required String totalPrice, required String currency, required double latency})
Usage.fromJson(Map<String, dynamic> json)
factory

Properties

completionPrice String
final
completionTokens int
final
completionUnitPrice String
final
currency String
final
hashCode int
The hash code for this object.
no setterinherited
latency double
final
promptPrice String
final
promptTokens int
final
promptUnitPrice String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalPrice String
final
totalTokens int
final

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited