fromValue static method

SslErrorType? fromValue(
  1. String? value
)

Gets a possible SslErrorType instance from String value.

Implementation

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