SentryTraceContextHeader.fromJson constructor
Deserializes a SentryTraceContextHeader from JSON Map.
Implementation
factory SentryTraceContextHeader.fromJson(Map<String, dynamic> data) {
final json = AccessAwareMap(data);
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'],
replayId:
json['replay_id'] == null ? null : SentryId.fromId(json['replay_id']),
unknown: json.notAccessed(),
);
}