fromNativeValue static method

FetchRequestAction? fromNativeValue(
  1. int? value
)

Gets a possible FetchRequestAction instance from a native value.

Implementation

static FetchRequestAction? fromNativeValue(int? value) {
  if (value != null) {
    try {
      return FetchRequestAction.values
          .firstWhere((element) => element.toNativeValue() == value);
    } catch (e) {
      return null;
    }
  }
  return null;
}