fromString static method

ActivityConfidence fromString(
  1. String? value
)

Returns the activity confidence from value.

Implementation

static ActivityConfidence fromString(String? value) =>
    ActivityConfidence.values.firstWhere(
      (e) => e.toString() == 'ActivityConfidence.$value',
      orElse: () => ActivityConfidence.LOW,
    );