ContentConverter
A custom content converter that could be registered in ContentNegotiation plugin for any particular content type Could provide bi-directional conversion implementation. One of the most typical examples of content converter is a JSON content converter that provides both serialization and deserialization
Implementations must override at least one of serialize or serializeNullable methods.
Functions
Serializes a value to the specified contentType to a OutgoingContent. This function could ignore value if it is not suitable for conversion and return null
so in this case other registered converters could be tried or this function could be invoked with other content types it the converted has been registered multiple times with different content types.
Serializes a value to the specified contentType to a OutgoingContent. This function could ignore value if it is not suitable for conversion and return null
so in this case other registered converters could be tried or this function could be invoked with other content types it the converted has been registered multiple times with different content types.