Span.fromJson constructor

Span.fromJson(
  1. Map json_
)

Implementation

Span.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? Attributes.fromJson(
                json_['attributes'] as core.Map<core.String, core.dynamic>)
            : null,
        childSpanCount: json_.containsKey('childSpanCount')
            ? json_['childSpanCount'] as core.int
            : null,
        displayName: json_.containsKey('displayName')
            ? TruncatableString.fromJson(
                json_['displayName'] as core.Map<core.String, core.dynamic>)
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        links: json_.containsKey('links')
            ? Links.fromJson(
                json_['links'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parentSpanId: json_.containsKey('parentSpanId')
            ? json_['parentSpanId'] as core.String
            : null,
        sameProcessAsParentSpan: json_.containsKey('sameProcessAsParentSpan')
            ? json_['sameProcessAsParentSpan'] as core.bool
            : null,
        spanId: json_.containsKey('spanId')
            ? json_['spanId'] as core.String
            : null,
        spanKind: json_.containsKey('spanKind')
            ? json_['spanKind'] as core.String
            : null,
        stackTrace: json_.containsKey('stackTrace')
            ? StackTrace.fromJson(
                json_['stackTrace'] as core.Map<core.String, core.dynamic>)
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        status: json_.containsKey('status')
            ? Status.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        timeEvents: json_.containsKey('timeEvents')
            ? TimeEvents.fromJson(
                json_['timeEvents'] as core.Map<core.String, core.dynamic>)
            : null,
      );