fromDict method

  1. @override
LivenessThreshold fromDict(
  1. Map<String, dynamic> map
)
override

Implementation

@override
LivenessThreshold fromDict(Map<String, dynamic> map) {
  return LivenessThresholdBlink(
    leftEyeProbability: map['leftEyeProbability']?.toDouble() ?? 0.0,
    rightEyeProbability: map['rightEyeProbability']?.toDouble() ?? 0.0,
  );
}