UDeviceIntegrity.fromMap constructor

UDeviceIntegrity.fromMap(
  1. Map<String, Object?> m
)

Reads it from the native map.

Implementation

factory UDeviceIntegrity.fromMap(Map<String, Object?> m) => UDeviceIntegrity(
  rooted: m.flag("rooted") ?? false,
  emulator: m.flag("emulator") ?? false,
  debuggerAttached: m.flag("debugger") ?? false,
  hooked: m.flag("hooked") ?? false,
  developerMode: m.flag("developerMode") ?? false,
  adbEnabled: m.flag("adb") ?? false,
  virtualMachine: m.flag("vm") ?? false,
  automated: m.flag("automation") ?? false,
  reasons: m.strings("reasons"),
);