SentryTraceContextHeader.fromJson constructor

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

Deserializes a SentryTraceContextHeader from JSON Map.

Implementation

factory SentryTraceContextHeader.fromJson(Map<String, dynamic> json) {
  return SentryTraceContextHeader(
    SentryId.fromId(json['trace_id']),
    json['public_key'],
    release: json['release'],
    environment: json['environment'],
    userId: json['user_id'],
    userSegment: json['user_segment'],
    transaction: json['transaction'],
    sampleRate: json['sample_rate'],
    sampled: json['sampled'],
  );
}