fromValue static method

OID? fromValue(
  1. String? value
)

Implementation

static OID? fromValue(String? value) {
  if (value != null) {
    try {
      return OID.values.firstWhere((element) => element.toValue() == value);
    } catch (e) {
      return null;
    }
  }
  return null;
}