GenerateContentUnknown class final

Fallback for unknown/forward-compatible GenerateContent variants.

Newer core versions may emit tags this binding does not model yet; this class passes them through verbatim ({tag: data}) instead of discarding or crashing.

Inheritance

Constructors

GenerateContentUnknown({required String tag, required Map<String, dynamic> data})

Properties

data Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
The variant tag — the single top-level key on the wire, e.g. 'Text', 'ToolCall'. Useful for logging / generic dispatch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Re-encode to the externally-tagged wire shape ({tag: payload}).
override
toString() String
A string representation of this object.
inherited

Operators

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