write

fun write(
    data: Any,
    contentType: ContentType
): OutgoingContent

Overrides JsonSerializer.write

Convert data object to OutgoingContent.