SentryThread.fromJson constructor

SentryThread.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory SentryThread.fromJson(Map<String, dynamic> data) {
  final json = AccessAwareMap(data);
  return SentryThread(
    id: json['id'] as int?,
    name: json['name'] as String?,
    crashed: json['crashed'] as bool?,
    current: json['current'] as bool?,
    stacktrace:
        json['stacktrace'] == null ? null : SentryStackTrace.fromJson(json),
    unknown: json.notAccessed(),
  );
}