public static DiseasePanel load ( InputStream diseasePanelInputStream ) throws IOException { ObjectMapper objectMapper = new ObjectMapper ( ) ; return objectMapper . readValue ( diseasePanelInputStream , DiseasePanel . class ) ; }
Static method to load and parse a JSON string from an InputStream .