toJson method
Item encoded as JSON
Implementation
Map<String, dynamic> toJson() {
return {
...?unknown,
'span_id': spanId.toString(),
'trace_id': traceId.toString(),
'op': operation,
if (parentSpanId != null) 'parent_span_id': parentSpanId!.toString(),
if (replayId != null) 'replay_id': replayId!.toString(),
if (description != null) 'description': description,
if (status != null) 'status': status!.toString(),
if (origin != null) 'origin': origin,
if (data != null) 'data': data,
};
}