code: public <T extends OmiseObject> void serialize(OutputStream output, T model) throws IOException {
          objectMapper.writerFor(model.getClass()).writeValue(output, model);
      }
docs: Serializes the given model to the output stream.
  
  @param output The {@link OutputStream} to serializes the model into.
  @param model  The {@link OmiseObject} to serialize.
  @param <T>    The type of the model to serialize.
  @throws IOException on general I/O error.