TranscriptionUsageTokens class

Usage statistics for transcription models billed by token count.

Inheritance

Constructors

TranscriptionUsageTokens.new({required int inputTokens, InputTokenDetails? inputTokenDetails, required int outputTokens, required int totalTokens})
const
TranscriptionUsageTokens.fromJson(Map<String, dynamic> j)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
inputTokenDetails InputTokenDetails?
final
inputTokens int
final
outputTokens int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalTokens int
final
type String
finalinherited

Methods

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

Operators

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