toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attributes != null) 'attributes': attributes!,
      if (childSpanCount != null) 'childSpanCount': childSpanCount!,
      if (displayName != null) 'displayName': displayName!,
      if (endTime != null) 'endTime': endTime!,
      if (links != null) 'links': links!,
      if (name != null) 'name': name!,
      if (parentSpanId != null) 'parentSpanId': parentSpanId!,
      if (sameProcessAsParentSpan != null)
        'sameProcessAsParentSpan': sameProcessAsParentSpan!,
      if (spanId != null) 'spanId': spanId!,
      if (spanKind != null) 'spanKind': spanKind!,
      if (stackTrace != null) 'stackTrace': stackTrace!,
      if (startTime != null) 'startTime': startTime!,
      if (status != null) 'status': status!,
      if (timeEvents != null) 'timeEvents': timeEvents!,
    };