_docs-v5/event-model/Event-toPlainObject.md
Serializes an Event API Object to a plain object that would be fit for JSON.stringify.
<div class='spec' markdown='1'> event.toPlainObject( *settings* ) </div>This methods attempts to aggregate all non-empty properties. Some properties are not yet supported, such as most recurrence propreties. If the resulting object does not look as desired, it is best to write your own serialization function from scratch.
The optional settings argument contains properties that affect serialization:
The Event::toJSON method is aliased to Event::toPlainObject to make JSON.stringify work.