TraceSpan.fromJson constructor
TraceSpan.fromJson(
- Map json_
Implementation
TraceSpan.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,
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,
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,
);