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