private JsonObject getPendingJSONObject ( ) { for ( Map . Entry < String , BoxJSONObject > entry : this . children . entrySet ( ) ) { BoxJSONObject child = entry . getValue ( ) ; JsonObject jsonObject = child . getPendingJSONObject ( ) ; if ( jsonObject != null ) { if ( this . pendingChanges == null ) { this . pendingChanges = new JsonObject ( ) ; } this . pendingChanges . set ( entry . getKey ( ) , jsonObject ) ; } } return this . pendingChanges ; }
Gets a JsonObject containing any pending changes to this object that can be sent back to the Box API .