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