IntelligenceResponse.fromJson constructor

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

Implementation

factory IntelligenceResponse.fromJson(Map<String, dynamic> json) => IntelligenceResponse(
  requestId: json['requestId'],
  clientUserIds: List<String>.from(json['clientUserIds'] ?? []),
  sign3UserIds: List<String>.from(json['sign3UserIds'] ?? []),
  newDevice: json['newDevice'],
  deviceId: json['deviceId'],
  vpn: json['vpn'],
  proxy: json['proxy'],
  emulator: json['emulator'],
  remoteAppProviders: json['remoteAppProviders'],
  remoteAppProvidersCount: json['remoteAppProvidersCount'],
  mirroredScreen: json['mirroredScreen'],
  cloned: json['cloned'],
  geoSpoofed: json['geoSpoofed'],
  rooted: json['rooted'],
  ip: json['ip'],
  ipDetails: json['ipDetails'] != null ? IPDetails.fromJson(json['ipDetails']) : null,
  hooking: json['hooking'],
  factoryReset: json['factoryReset'],
  appTampering: json['appTampering'],
  simInfo: json['simInfo'] != null ? AllSimInfo.fromJson(json['simInfo']) : null,
  gpsLocation: json['gpsLocation'] != null ? GPSLocationData.fromJson(json['gpsLocation']) : null,
  deviceRiskScore: json['deviceRiskScore']?.toDouble(),
  sessionRiskScore: json['sessionRiskScore']?.toDouble(),
  additionalData: Map<String, String>.from(json['additionalData'] ?? {}),
);