SentryException.fromJson constructor
Deserializes a SentryException from JSON Map.
Implementation
factory SentryException.fromJson(Map<String, dynamic> json) {
final stackTraceJson = json['stacktrace'];
final mechanismJson = json['mechanism'];
return SentryException(
type: json['type'],
value: json['value'],
module: json['module'],
stackTrace: stackTraceJson != null
? SentryStackTrace.fromJson(stackTraceJson)
: null,
mechanism:
mechanismJson != null ? Mechanism.fromJson(mechanismJson) : null,
threadId: json['thread_id'],
);
}