fromNativeValue static method

ServerTrustAuthResponseAction? fromNativeValue(
  1. int? value
)

Gets a possible ServerTrustAuthResponseAction instance from a native value.

Implementation

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