writeAllFields

fun <A> writeAllFields(message: M?, jsonAdapters: List<A>, redactedFieldsAdapter: A?, encodeValue: (String, Any?, A) -> Unit)

Walk the fields of message and invoke encodeValue on each that should be written as JSON. This omits fields that have the identity value when that is required.