operator << method

ValueType operator <<(
  1. Object? value
)

Infer the ValueType of a JSON value, and merge it with this ValueType.

This is equivalent to calling inferValueType with the value, and then generalizeValueTypes with the inferred ValueType and this ValueType.

See also:

  • +, which merges two existing ValueTypes together.

Implementation

ValueType operator <<(Object? value) => this + inferValueType(value);