SpanLink.fromJson constructor

SpanLink.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SpanLink.fromJson(Map<String, dynamic> json) {
  return SpanLink(
    api.SpanContext.fromJson(json['context']),
    attributes: (json['attributes'] as List).map((e) => api.Attribute.fromJson(e)).toList(),
    droppedAttributes: json['droppedAttributes'],
  );
}