public static final AuthToken fromJSON(String json) {
        try {
            return mapper.reader(AuthToken.class).readValue(json);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
public static final AuthToken fromJSON ( String json ) { try { return mapper . reader ( AuthToken . class ) . readValue ( json ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Read the auth token from the JSON string.
@param json the token as a json string
@return the token