fromValue static method

ASN1DistinguishedNames? fromValue(
  1. String? oid
)

Implementation

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