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'],
      simulator = json['simulator'],
      jailbroken = json['jailbroken'],
      clientUserIds = List<String>.from(json['clientUserIds'] ?? []),
      sign3UserIds = List<String>.from(json['sign3UserIds'] ?? []),
      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'] ?? {}),
      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;