Link.fromJson constructor

Link.fromJson(
  1. Map json_
)

Implementation

Link.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? Attributes.fromJson(
                json_['attributes'] as core.Map<core.String, core.dynamic>)
            : null,
        spanId: json_.containsKey('spanId')
            ? json_['spanId'] as core.String
            : null,
        traceId: json_.containsKey('traceId')
            ? json_['traceId'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );