public static Project parseMinimalProject ( JSONObject content ) throws JSONException { final Project result = new Project ( ) ; result . setId ( JsonInput . getInt ( content , "id" ) ) ; result . setIdentifier ( JsonInput . getStringOrNull ( content , "identifier" ) ) ; result . setName ( JsonInput . getStringNotNull ( content , "name" ) ) ; return result ; }
Parses a minimal version of a project .