API reference: @salmonui/data/json
toWirePivotModelfunction
import { toWirePivotModel } from '@salmonui/data/json';Also exported from @salmonui/data.
function toWirePivotModel(model: WirePivotModel): WirePivotModel;
The model as it travels: rejects client-only aggregators, drops formats and
conditional formats, omits defaults. Throws ProtocolError with code
pivot/unsupported-aggregate for a value field whose aggregate is
custom or a function.