getByValue static method

LivenessStatus? getByValue(
  1. int? i
)

Implementation

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