toValue<T> abstract method
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]);