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'],
      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'] ?? {}),
      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;