public static Dataset datasetsFromInputStreamInJson(InputStream inputStream) throws IOException {
    Dataset dataset = objectMapper.readValue(inputStream, Dataset.class);
    return new DatasetBuilder(dataset).build();
  }
Deserialize the {@link Dataset} in json from given InputStream.
@param inputStream the {@link InputStream} that contains serialized json bytes.
@return the {@link Dataset}
@throws IOException
ambry-api/src/main/java/com/github/ambry/account/AccountCollectionSerde.java