public static IssueStatus parseStatus ( JSONObject object ) throws JSONException { final int id = JsonInput . getInt ( object , "id" ) ; final String name = JsonInput . getStringNotNull ( object , "name" ) ; final IssueStatus result = new IssueStatus ( id , name ) ; if ( object . has ( "is_default" ) ) result . setDefaultStatus ( JsonInput . getOptionalBool ( object , "is_default" ) ) ; if ( object . has ( "is_closed" ) ) result . setClosed ( JsonInput . getOptionalBool ( object , "is_closed" ) ) ; return result ; }
Parses a status .