fromValue static method

ASN1IdentifierClass? fromValue(
  1. int? value
)

Implementation

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