SentryPackage.fromJson constructor

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

Deserializes a SentryPackage from JSON Map.

Implementation

factory SentryPackage.fromJson(Map<String, dynamic> data) {
  final json = AccessAwareMap(data);
  return SentryPackage(
    json['name'],
    json['version'],
    unknown: json.notAccessed(),
  );
}