IntelligenceResponse.fromJson constructor

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

Implementation

factory IntelligenceResponse.fromJson(Map<String, dynamic> json) {
  return IntelligenceResponse(
    requestId: json['requestId'],
    newDevice: json['newDevice'],
    deviceId: json['deviceId'],
    vpn: json['vpn'],
    proxy: json['proxy'],
    emulator: json['emulator'],
    remoteAppProviders: json['remoteAppProviders'],
    mirroredScreen: json['mirroredScreen'],
    cloned: json['cloned'],
    geoSpoofed: json['geoSpoofed'],
    rooted: json['rooted'],
    riskScore: json['riskScore'],
    ip: json['ip'],
    ipLocationCity: json['ipLocationCity'],
    ipLocationRegion: json['ipLocationRegion'],
    ipLocationCountry: json['ipLocationCountry'],
    ipLocationLatitude: json['ipLocationLatitude'],
    ipLocationLongitude: json['ipLocationLongitude'],
    ipRiskScore: json['ipRiskScore'],
    hooking: json['hooking'],
    factoryReset: json['factoryReset'],
    appTampering: json['appTampering'],
    gpsLocation: json['gpsLocation'] != null
        ? GPSLocationData.fromJson(json['gpsLocation'])
        : null,
    sessionRiskScore: (json['sessionRiskScore'] as num?)?.toDouble(),
  );
}