scalarToJson function
- Scalar value
Encodes an exact physical scalar value in the owned-JSON value format. Dictionary scalars encode their index; dictionary storage is supplied separately. This custom representation is not Arrow IPC.
Implementation
Object? scalarToJson(Scalar value) =>
value._rawValue == null ? null : _valueToJson(value.type, value._rawValue);