GenerationUsage class base
Constructors
-
GenerationUsage({int? inputTokens, int? outputTokens, int? totalTokens, int? inputCharacters, int? outputCharacters, int? inputImages, int? outputImages, int? inputVideos, int? outputVideos, int? inputAudioFiles, int? outputAudioFiles, Map<
String, dynamic> ? custom, int? thoughtsTokens, int? cachedContentTokens}) -
GenerationUsage.fromJson(Map<
String, dynamic> json) -
Creates a GenerationUsage from a JSON map.
factory
Properties
- cachedContentTokens ↔ int?
-
getter/setter pair
-
custom
↔ Map<
String, dynamic> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputAudioFiles ↔ int?
-
getter/setter pair
- inputCharacters ↔ int?
-
getter/setter pair
- inputImages ↔ int?
-
getter/setter pair
- inputTokens ↔ int?
-
getter/setter pair
- inputVideos ↔ int?
-
getter/setter pair
- outputAudioFiles ↔ int?
-
getter/setter pair
- outputCharacters ↔ int?
-
getter/setter pair
- outputImages ↔ int?
-
getter/setter pair
- outputTokens ↔ int?
-
getter/setter pair
- outputVideos ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thoughtsTokens ↔ int?
-
getter/setter pair
- totalTokens ↔ int?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this GenerationUsage to a JSON map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
$schema
→ const SchemanticType<
GenerationUsage> - The JSON schema and type descriptor for GenerationUsage.