ContentBlock class sealed
A content block inside an assistant or user message.
Mirrors the Anthropic Beta content-block union. Raw-preserving like SdkMessage: toJson reproduces the original JSON.
- Implementers
Constructors
-
ContentBlock.fromJson(Map<
String, dynamic> json) -
Parses
jsoninto the matching ContentBlock subclass.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Reproduces the original wire JSON verbatim.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited