toJson method
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'n': name,
'c': category,
't': timestampUs,
if (durationUs > 0) 'd': durationUs,
if (phase != null) 'p': phase,
if (processId != null) 'pid': processId,
if (threadId != null) 'tid': threadId,
if (eventId != null) 'id': eventId,
if (scope != null) 'scope': scope,
if (bindId != null) 'bid': bindId,
if (source != null) 'src': source,
if (isolateId != null) 'iso': isolateId,
if (uri != null) 'u': uri,
if (line != null) 'l': line,
if (column != null) 'col': column,
if (args.isNotEmpty) 'a': args,
};