getType static method

InsightType getType(
  1. String? s
)

Implementation

static InsightType getType(String? s) => InsightType.values.firstWhere(
      (final InsightType key) => _VALUES[key] == s,
      orElse: () => InsightType.UNDEFINED,
    );