LivenessDetectionStepItem.fromMap constructor

LivenessDetectionStepItem.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory LivenessDetectionStepItem.fromMap(Map<String, dynamic> map) {
  return LivenessDetectionStepItem(
    step: LivenessDetectionStep.values[map['step'] ?? 0],
    title: map['title'] ?? '',
    thresholdToCheck: map['thresholdToCheck']?.toDouble(),
    isCompleted: map['isCompleted'] ?? false,
  );
}