toValue<T> abstract method

dynamic toValue<T>(
  1. T? value, [
  2. EncodingOptions? options
])

The core method to encode any value.

The value is expected to be of type T. When the exact type of the value is different, a type identifier may be added to the resulting encoded value.

Implementation

dynamic toValue<T>(T? value, [EncodingOptions? options]);