question: DeleteEvent ( @ NonNull JSONObject json ) throws JSONException { super ( TYPE_DELETE , json ) ; if ( TextUtils . isEmpty ( mBlockId ) ) { throw new JSONException ( TYPENAME_DELETE + " requires " + JSON_BLOCK_ID ) ; } mOldXml = json . optString ( JSON_OLD_VALUE ) ; JSONArray ids = json . getJSONArray ( JSON_IDS ) ; int count = ids . length ( ) ; List < String > temp = new ArrayList < > ( count ) ; for ( int i = 0 ; i < count ; ++ i ) { temp . add ( ids . getString ( i ) ) ; } mIds = Collections . unmodifiableList ( temp ) ; }
target:  Constructs a DeleteEvent from the JSON serialized representation.