M7LivelynessStepItem.fromMap constructor
Implementation
factory M7LivelynessStepItem.fromMap(Map<String, dynamic> map) {
return M7LivelynessStepItem(
step: M7LivelynessStep.values[map['step'] ?? 0],
title: map['title'] ?? '',
thresholdToCheck: map['thresholdToCheck']?.toDouble(),
isCompleted: map['isCompleted'] ?? false,
detectionColor:
map['detectionColor'] != null ? Color(map['detectionColor']) : null,
);
}