getByValue static method

Authenticity? getByValue(
  1. int? i
)

Implementation

static Authenticity? getByValue(int? i) {
  if (i == null) return null;
  try {
    return Authenticity.values.firstWhere((x) => x.value == i);
  } catch (_) {
    return Authenticity.UNKNOWN;
  }
}