ToolCallContentDiff.fromMap constructor

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

Implementation

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