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