getByValue static method

RFIDNotificationCodes? getByValue(
  1. int? i
)

Implementation

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