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