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 (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 (startTime != null) 'startTime': startTime!,
      if (status != null) 'status': status!,
    };