code: public <T extends OmiseObject> T deserialize(InputStream input, TypeReference<T> ref) throws IOException {
          return objectMapper.readerFor(ref).readValue(input);
      }
docs: Deserialize an instance of the given type reference from the input stream.
  
  @param input The {@link InputStream} that contains the data to deserialize.
  @param ref   The {@link TypeReference} of the type to deserialize the result into.
  @param <T>   The type to deserialize the result into.
  @return An instance of the given type T deserialized from the input stream.
  @throws IOException on general I/O error.