FingerprintJSProExtendedResponse.fromJson constructor

FingerprintJSProExtendedResponse.fromJson(
  1. Map<String, dynamic> json,
  2. String requestId,
  3. num confidence,
  4. String? sealedResult,
)

Creates class instance from JSON Object that can be returned by Android or iOS agent, or can be a serialization result

Implementation

FingerprintJSProExtendedResponse.fromJson(
    super.json, super.requestId, super.confidence, super.sealedResult)
    : visitorFound = json['visitorFound'],
      ipAddress = json['ip'] ?? json['ipAddress'],
      ipLocation = json['ipLocation'] != null
          ? IpLocation.fromJson(Map<String, dynamic>.from(json['ipLocation']))
          : null,
      osName = json['os'] ?? json['osName'],
      osVersion = json['osVersion'],
      device = json['device'],
      firstSeenAt =
          StSeenAt.fromJson(Map<String, dynamic>.from(json['firstSeenAt'])),
      lastSeenAt =
          StSeenAt.fromJson(Map<String, dynamic>.from(json['lastSeenAt'])),
      super.fromJson();