serialize method

TraceEvent serialize()

Implementation

TraceEvent serialize() => TraceEvent()..traceEvents = _collectedEvents;