SentryRuntime.fromJson constructor

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

Deserializes a SentryRuntime from JSON Map.

Implementation

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