SessionUpdateToolCall.fromMap constructor

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

Implementation

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