getByValue static method

LivenessErrorCode? getByValue(
  1. int? i
)

Implementation

static LivenessErrorCode? getByValue(int? i) {
  if (i == null) return null;
  return LivenessErrorCode.values.firstWhere((x) => x.value == i);
}