ToolCallStatusPending.fromJson constructor

ToolCallStatusPending.fromJson(
  1. Object? value
)

Implementation

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