authenticatorTransportFromValue static method

AuthenticatorTransport? authenticatorTransportFromValue(
  1. String s
)

Implementation

static AuthenticatorTransport? authenticatorTransportFromValue(String s) {
  AuthenticatorTransport? a;
  for (AuthenticatorTransport element in AuthenticatorTransport.values) {
    if (s == describeEnum(element)) {
      a = element;
    }
  }
  if (a == null) {
    throw IllegalParameterException('No enum AuthenticatorTransport $s');
  } else {
    return a;
  }
}