fromValue static method
Gets a possible IOSNSURLProtectionSpaceAuthenticationMethod instance from String value.
Implementation
static IOSNSURLProtectionSpaceAuthenticationMethod? fromValue(String? value) {
if (value != null) {
try {
return IOSNSURLProtectionSpaceAuthenticationMethod.values
.firstWhere((element) => element.toValue() == value);
} catch (e) {
return null;
}
}
return null;
}