public CreateEvent(JSONObject json) throws JSONException {
  super(TYPE_CREATE,json);
  if (mBlockId == null) {
    throw new JSONException(JSON_BLOCK_ID + " must be assigned.");
  }
  mXml=json.getString(JSON_XML);
  JSONArray jsonIds=json.getJSONArray("ids");
  int count=jsonIds.length();
  List<String> ids=new ArrayList<>(count);
  for (int i=0; i < count; ++i) {
    ids.add(jsonIds.getString(i));
  }
  mIds=Collections.unmodifiableList(ids);
}

public CreateEvent ( JSONObject json ) throws JSONException { super ( TYPE_CREATE , json ) ; if ( mBlockId == null ) { throw new JSONException ( JSON_BLOCK_ID + " must be assigned." ) ; } mXml = json . getString ( JSON_XML ) ; JSONArray jsonIds = json . getJSONArray ( "ids" ) ; int count = jsonIds . length ( ) ; List < String > ids = new ArrayList < > ( count ) ; for ( int i = 0 ; i < count ; ++ i ) { ids . add ( jsonIds . getString ( i ) ) ; } mIds = Collections . unmodifiableList ( ids ) ; }
constructs a createevent from the json serialized representation .
