ObjectEncoder<N, E> typedef

ObjectEncoder<N, E> = E Function(N nonEncodableObject)

A function that creates an object of the type E starting from one of the type N.

This is used by EncodableValue and E typically represents a JSON-encodable type.

Implementation

typedef ObjectEncoder<N, E> = E Function(N nonEncodableObject);