SentryOperatingSystem.fromJson constructor

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

Deserializes a SentryOperatingSystem from JSON Map.

Implementation

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