public static < ResultT > PollingState < ResultT > createFromJSONString ( String serializedPollingState ) { ObjectMapper mapper = initMapper ( new ObjectMapper ( ) ) ; PollingState < ResultT > pollingState ; try { pollingState = mapper . readValue ( serializedPollingState , PollingState . class ) ; } catch ( IOException exception ) { throw new RuntimeException ( exception ) ; } return pollingState ; }
Creates PollingState from the json string .