SessionUpdateAgentThoughtChunk.fromMap constructor

SessionUpdateAgentThoughtChunk.fromMap(
  1. Map<Object?, Object?> value
)

Implementation

factory SessionUpdateAgentThoughtChunk.fromMap(Map<Object?, Object?> value) {
  final decoded = SessionUpdate.fromMap(value);
  if (decoded is! SessionUpdateAgentThoughtChunk) {
    throw const AcpWireDecodeException(
      'Expected SessionUpdateAgentThoughtChunk.',
    );
  }
  return decoded;
}