getActivityConfidenceFromString function
Returns the activity confidence from value
.
Implementation
ActivityConfidence getActivityConfidenceFromString(String? value) {
return ActivityConfidence.values.firstWhere(
(e) => e.toString() == 'ActivityConfidence.$value',
orElse: () => ActivityConfidence.LOW);
}