ParseRelation(JSONObject jsonObject,ParseDecoder decoder){
  this.parent=null;
  this.parentObjectId=null;
  this.parentClassName=null;
  this.key=null;
  this.targetClass=jsonObject.optString("className",null);
  JSONArray objectsArray=jsonObject.optJSONArray("objects");
  if (objectsArray != null) {
    for (int i=0; i < objectsArray.length(); ++i) {
      knownObjects.add((ParseObject)decoder.decode(objectsArray.optJSONObject(i)));
    }
  }
}

ParseRelation ( JSONObject jsonObject , ParseDecoder decoder ) { this . parent = null ; this . parentObjectId = null ; this . parentClassName = null ; this . key = null ; this . targetClass = jsonObject . optString ( "className" , null ) ; JSONArray objectsArray = jsonObject . optJSONArray ( "objects" ) ; if ( objectsArray != null ) { for ( int i = 0 ; i < objectsArray . length ( ) ; ++ i ) { knownObjects . add ( ( ParseObject ) decoder . decode ( objectsArray . optJSONObject ( i ) ) ) ; } } }
parses a relation from json .
