IntelligenceResponse.fromAndroidJson constructor

IntelligenceResponse.fromAndroidJson(
  1. Map<String, dynamic> json
)

Android-specific constructor

Implementation

IntelligenceResponse.fromAndroidJson(Map<String, dynamic> json)
    : requestId = json['requestId'],
      deviceId = json['deviceId'],
      sessionId = json['sessionId'],
      clientUserIds = List<String>.from(json['clientUserIds'] ?? []),
      newDevice = json['newDevice'],
      ip = json['ip'],
      vpn = json['vpn'],
      proxy = json['proxy'],
      geoSpoofed = json['geoSpoofed'],
      appTampering = json['appTampering'],
      hooking = json['hooking'],
      factoryReset = json['factoryReset'],
      mirroredScreen = json['mirroredScreen'],
      cloned = json['cloned'],
      deviceRiskScore = json['deviceRiskScore']?.toDouble(),
      sessionRiskScore = json['sessionRiskScore']?.toDouble(),
      factoryResetTime = json['factoryResetTime'],
      additionalData = Map<String, String>.from(json['additionalData'] ?? {}),
      appliedRules = json['appliedRules'] != null ? AppliedRules.fromJson(json['appliedRules']) : null,
      genuineInstall = json['genuineInstall'],
      harmfulAppDetected = json['harmfulAppDetected'],
      blacklistedDevice = json['blacklistedDevice'],
      developerOptionsEnabled = json['developerOptionsEnabled'],
      usbDebugging = json['usbDebugging'],
      wirelessDebugging = json['wirelessDebugging'],
      unsecuredWifi = json['unsecuredWifi'],
      keyloggerDetected = json['keyloggerDetected'],
      ruleAction = json['ruleAction'] != null ? RuleAction.fromJson(json['ruleAction']) : null,
      emulator = json['emulator'],
      remoteAppProviders = json['remoteAppProviders'],
      remoteAppProvidersCount = json['remoteAppProvidersCount'],
      rooted = json['rooted'],
      simInfo = json['simInfo'] != null ? AllSimInfo.fromJson(json['simInfo']) : null,
      deviceMeta = json['deviceMeta'] != null ? DeviceMeta.fromAndroidJson(json['deviceMeta']) : null,
      ipDetails = json['ipDetails'] != null ? IPDetails.fromJson(json['ipDetails']) : null,
      gpsLocation = json['gpsLocation'] != null ? GPSLocationData.fromAndroidJson(json['gpsLocation']) : null,
      appAnalytics = json['appAnalytics'] != null ? AppAnalytics.fromJson(json['appAnalytics']) : null;