SpanEvent.fromJson constructor

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

Implementation

factory SpanEvent.fromJson(Map<String, dynamic> json) {
  return SpanEvent(
    timestamp: Int64.parseInt(json['timestamp']),
    name: json['name'],
    attributes: (json['attributes'] as List).map((e) => api.Attribute.fromJson(e)).toList(),
    droppedAttributesCount: json['droppedAttributesCount'],
  );
}