open static fun <T : Any> fromObject(body: T): BodyInserter<T, ReactiveHttpOutputMessage>
Return a BodyInserter that writes the given single object.
Note also that org.springframework.web.reactive.function.client.WebClient and org.springframework.web.reactive.function.server.ServerResponse each offer a syncBody(Object) shortcut for providing an Object as the body.
body - the body of the response
Return
a BodyInserter that writes a single object