LivenessDetectionResult.fromJson constructor
LivenessDetectionResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LivenessDetectionResult.fromJson(Map<String, dynamic> json) {
return LivenessDetectionResult(
attempt: json["attempt"],
detectionResult: List<DetectionResult>.from(
json["detectionResult"].map((x) => DetectionResult.fromJson(x))),
errorMessage: json["errorMessage"] ?? "",
isSuccess: json["isSuccess"],
totalTimeMilis: json["totalTimeMilis"] ?? json["totalTimeMillis"],
);
}