getActivityConfidenceFromString function

ActivityConfidence getActivityConfidenceFromString(
  1. String? value
)

Returns the activity confidence from value.

Implementation

ActivityConfidence getActivityConfidenceFromString(String? value) {
  return ActivityConfidence.values.firstWhere(
      (e) => e.toString() == 'ActivityConfidence.$value',
      orElse: () => ActivityConfidence.LOW);
}