IntelligenceResponse.fromIosJson constructor

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

iOS-specific constructor

Implementation

IntelligenceResponse.fromIosJson(Map<String, dynamic> json)
    :
      requestId = json['requestId'],
      deviceId = json['deviceId'],
      sessionId = json['sessionId'],
      simulator = json['simulator'],
      jailbroken = json['jailbroken'],
      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,
      ipDetails = json['ipDetails'] != null ? IPDetails.fromJson(json['ipDetails']) : null,
      gpsLocation = json["gpsLocation"] != null ? GPSLocationData.fromiOSJson(json['gpsLocation']) : null,
      deviceMeta = json['deviceMeta']  != null ? DeviceMeta.fromiOSJson(json['deviceMeta']) : null,
      appAnalytics = json['appAnalytics'] != null ? AppAnalytics.fromJson(json['appAnalytics']) : null;