ToolCallStatusFailed.fromJson constructor

ToolCallStatusFailed.fromJson(
  1. Object? value
)

Implementation

factory ToolCallStatusFailed.fromJson(Object? value) {
  final decoded = ToolCallStatus.fromJson(value);
  if (decoded is! ToolCallStatusFailed) {
    throw const AcpWireDecodeException('Expected ToolCallStatusFailed.');
  }
  return decoded;
}