fromValue static method

IOSURLCredentialPersistence? fromValue(
  1. int? value
)

Implementation

static IOSURLCredentialPersistence? fromValue(int? value) {
  if (value != null) {
    try {
      return IOSURLCredentialPersistence.values
          .firstWhere((element) => element.toValue() == value);
    } catch (e) {
      return null;
    }
  }

  return null;
}