public < T extends OmiseObject > void serialize ( OutputStream output , T model ) throws IOException { objectMapper . writerFor ( model . getClass ( ) ) . writeValue ( output , model ) ; }
Serializes the given model to the output stream .